diff --git a/sdk/purview/purview-catalog-rest/CHANGELOG.md b/sdk/purview/purview-catalog-rest/CHANGELOG.md index 0248cb114780..12c2375fcf27 100644 --- a/sdk/purview/purview-catalog-rest/CHANGELOG.md +++ b/sdk/purview/purview-catalog-rest/CHANGELOG.md @@ -1,14 +1,9 @@ # Release History -## 1.0.0-beta.6 (Unreleased) +## 1.0.0-beta.6 (2024-12-16) ### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- refresh @azure-rest/purview-catalog sdk ## 1.0.0-beta.5 (2022-06-02) diff --git a/sdk/purview/purview-catalog-rest/package.json b/sdk/purview/purview-catalog-rest/package.json index 22619af7f851..9ab5d186768a 100644 --- a/sdk/purview/purview-catalog-rest/package.json +++ b/sdk/purview/purview-catalog-rest/package.json @@ -79,9 +79,10 @@ "sideEffects": false, "autoPublish": false, "dependencies": { + "@azure/core-lro": "^3.1.0", + "@azure/abort-controller": "^2.1.2", "@azure-rest/core-client": "^2.3.1", "@azure/core-auth": "^1.9.0", - "@azure/core-lro": "^2.7.2", "@azure/core-rest-pipeline": "^1.18.0", "@azure/logger": "^1.1.4", "tslib": "^2.8.1" diff --git a/sdk/purview/purview-catalog-rest/review/purview-catalog.api.md b/sdk/purview/purview-catalog-rest/review/purview-catalog.api.md index 5e32b8dd37ab..53ac1f6c2d61 100644 --- a/sdk/purview/purview-catalog-rest/review/purview-catalog.api.md +++ b/sdk/purview/purview-catalog-rest/review/purview-catalog.api.md @@ -4,16 +4,18 @@ ```ts +import type { AbortSignalLike } from '@azure/abort-controller'; +import type { CancelOnProgress } from '@azure/core-lro'; import type { Client } from '@azure-rest/core-client'; import type { ClientOptions } from '@azure-rest/core-client'; +import type { CreateHttpPollerOptions } from '@azure/core-lro'; import type { HttpResponse } from '@azure-rest/core-client'; -import type { LroEngineOptions } from '@azure/core-lro'; -import type { PollerLike } from '@azure/core-lro'; -import type { PollOperationState } from '@azure/core-lro'; +import type { OperationState } from '@azure/core-lro'; import type { RequestParameters } from '@azure-rest/core-client'; +import type { StreamableMethod } from '@azure-rest/core-client'; import type { TokenCredential } from '@azure/core-auth'; -// @public (undocumented) +// @public export interface AtlasAttributeDef { cardinality?: "SINGLE" | "LIST" | "SET"; constraints?: Array; @@ -30,7 +32,7 @@ export interface AtlasAttributeDef { valuesMinCount?: number; } -// @public (undocumented) +// @public export interface AtlasAttributeDefOutput { cardinality?: "SINGLE" | "LIST" | "SET"; constraints?: Array; @@ -47,17 +49,17 @@ export interface AtlasAttributeDefOutput { valuesMinCount?: number; } -// @public (undocumented) +// @public export interface AtlasBaseModelObject { guid?: string; } -// @public (undocumented) +// @public export interface AtlasBaseModelObjectOutput { guid?: string; } -// @public (undocumented) +// @public export interface AtlasBaseTypeDef { category?: "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE"; createdBy?: string; @@ -75,7 +77,7 @@ export interface AtlasBaseTypeDef { version?: number; } -// @public (undocumented) +// @public export interface AtlasBaseTypeDefOutput { category?: "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE"; createdBy?: string; @@ -93,15 +95,15 @@ export interface AtlasBaseTypeDefOutput { version?: number; } -// @public (undocumented) +// @public export interface AtlasBusinessMetadataDef extends AtlasStructDef { } -// @public (undocumented) +// @public export interface AtlasBusinessMetadataDefOutput extends AtlasStructDefOutput { } -// @public (undocumented) +// @public export interface AtlasClassification extends AtlasStruct { entityGuid?: string; entityStatus?: "ACTIVE" | "DELETED"; @@ -111,21 +113,21 @@ export interface AtlasClassification extends AtlasStruct { validityPeriods?: Array; } -// @public (undocumented) +// @public export interface AtlasClassificationDef extends AtlasStructDef { entityTypes?: Array; subTypes?: Array; superTypes?: Array; } -// @public (undocumented) +// @public export interface AtlasClassificationDefOutput extends AtlasStructDefOutput { entityTypes?: Array; subTypes?: Array; superTypes?: Array; } -// @public (undocumented) +// @public export interface AtlasClassificationOutput extends AtlasStructOutput { entityGuid?: string; entityStatus?: "ACTIVE" | "DELETED"; @@ -135,33 +137,33 @@ export interface AtlasClassificationOutput extends AtlasStructOutput { validityPeriods?: Array; } -// @public (undocumented) +// @public export interface AtlasClassificationsOutput extends PListOutput { } -// @public (undocumented) +// @public export interface AtlasConstraintDef { params?: Record>; type?: string; } -// @public (undocumented) +// @public export interface AtlasConstraintDefOutput { params?: Record>; type?: string; } -// @public (undocumented) +// @public export interface AtlasEntitiesWithExtInfo extends AtlasEntityExtInfo { entities?: Array; } -// @public (undocumented) +// @public export interface AtlasEntitiesWithExtInfoOutput extends AtlasEntityExtInfoOutput { entities?: Array; } -// @public (undocumented) +// @public export interface AtlasEntity extends AtlasStruct { businessAttributes?: Record>; classifications?: Array; @@ -185,31 +187,31 @@ export interface AtlasEntity extends AtlasStruct { version?: number; } -// @public (undocumented) +// @public export interface AtlasEntityDef extends AtlasStructDef { relationshipAttributeDefs?: Array; subTypes?: Array; superTypes?: Array; } -// @public (undocumented) +// @public export interface AtlasEntityDefOutput extends AtlasStructDefOutput { relationshipAttributeDefs?: Array; subTypes?: Array; superTypes?: Array; } -// @public (undocumented) +// @public export interface AtlasEntityExtInfo { referredEntities?: Record; } -// @public (undocumented) +// @public export interface AtlasEntityExtInfoOutput { referredEntities?: Record; } -// @public (undocumented) +// @public export interface AtlasEntityHeader extends AtlasStruct { classificationNames?: Array; classifications?: Array; @@ -222,7 +224,7 @@ export interface AtlasEntityHeader extends AtlasStruct { status?: "ACTIVE" | "DELETED"; } -// @public (undocumented) +// @public export interface AtlasEntityHeaderOutput extends AtlasStructOutput { classificationNames?: Array; classifications?: Array; @@ -235,12 +237,12 @@ export interface AtlasEntityHeaderOutput extends AtlasStructOutput { status?: "ACTIVE" | "DELETED"; } -// @public (undocumented) +// @public export interface AtlasEntityHeaders { guidHeaderMap?: Record; } -// @public (undocumented) +// @public export interface AtlasEntityOutput extends AtlasStructOutput { businessAttributes?: Record>; classifications?: Array; @@ -264,43 +266,43 @@ export interface AtlasEntityOutput extends AtlasStructOutput { version?: number; } -// @public (undocumented) +// @public export interface AtlasEntityWithExtInfo extends AtlasEntityExtInfo { entity?: AtlasEntity; } -// @public (undocumented) +// @public export interface AtlasEntityWithExtInfoOutput extends AtlasEntityExtInfoOutput { entity?: AtlasEntityOutput; } -// @public (undocumented) +// @public export interface AtlasEnumDef extends AtlasBaseTypeDef { defaultValue?: string; elementDefs?: Array; } -// @public (undocumented) +// @public export interface AtlasEnumDefOutput extends AtlasBaseTypeDefOutput { defaultValue?: string; elementDefs?: Array; } -// @public (undocumented) +// @public export interface AtlasEnumElementDef { description?: string; ordinal?: number; value?: string; } -// @public (undocumented) +// @public export interface AtlasEnumElementDefOutput { description?: string; ordinal?: number; value?: string; } -// @public (undocumented) +// @public export interface AtlasExtraTypeDef { attributeDefs?: Array; defaultValue?: string; @@ -315,7 +317,7 @@ export interface AtlasExtraTypeDef { superTypes?: Array; } -// @public (undocumented) +// @public export interface AtlasExtraTypeDefOutput { attributeDefs?: Array; defaultValue?: string; @@ -330,7 +332,7 @@ export interface AtlasExtraTypeDefOutput { superTypes?: Array; } -// @public (undocumented) +// @public export interface AtlasGlossary extends AtlasGlossaryBaseObject { categories?: Array; language?: string; @@ -338,7 +340,7 @@ export interface AtlasGlossary extends AtlasGlossaryBaseObject { usage?: string; } -// @public (undocumented) +// @public export interface AtlasGlossaryBaseObject extends AtlasBaseModelObject { classifications?: Array; lastModifiedTS?: string; @@ -348,7 +350,7 @@ export interface AtlasGlossaryBaseObject extends AtlasBaseModelObject { shortDescription?: string; } -// @public (undocumented) +// @public export interface AtlasGlossaryBaseObjectOutput extends AtlasBaseModelObjectOutput { classifications?: Array; lastModifiedTS?: string; @@ -358,7 +360,7 @@ export interface AtlasGlossaryBaseObjectOutput extends AtlasBaseModelObjectOutpu shortDescription?: string; } -// @public (undocumented) +// @public export interface AtlasGlossaryCategory extends AtlasGlossaryBaseObject { anchor?: AtlasGlossaryHeader; childrenCategories?: Array; @@ -366,7 +368,7 @@ export interface AtlasGlossaryCategory extends AtlasGlossaryBaseObject { terms?: Array; } -// @public (undocumented) +// @public export interface AtlasGlossaryCategoryOutput extends AtlasGlossaryBaseObjectOutput { anchor?: AtlasGlossaryHeaderOutput; childrenCategories?: Array; @@ -374,33 +376,33 @@ export interface AtlasGlossaryCategoryOutput extends AtlasGlossaryBaseObjectOutp terms?: Array; } -// @public (undocumented) +// @public export interface AtlasGlossaryExtInfo extends AtlasGlossary { categoryInfo?: Record; termInfo?: Record; } -// @public (undocumented) +// @public export interface AtlasGlossaryExtInfoOutput extends AtlasGlossaryOutput { categoryInfo?: Record; termInfo?: Record; } -// @public (undocumented) +// @public export interface AtlasGlossaryHeader { displayText?: string; glossaryGuid?: string; relationGuid?: string; } -// @public (undocumented) +// @public export interface AtlasGlossaryHeaderOutput { displayText?: string; glossaryGuid?: string; relationGuid?: string; } -// @public (undocumented) +// @public export interface AtlasGlossaryOutput extends AtlasGlossaryBaseObjectOutput { categories?: Array; language?: string; @@ -408,7 +410,7 @@ export interface AtlasGlossaryOutput extends AtlasGlossaryBaseObjectOutput { usage?: string; } -// @public (undocumented) +// @public export interface AtlasGlossaryTerm extends AtlasGlossaryBaseObject { abbreviation?: string; anchor?: AtlasGlossaryHeader; @@ -441,7 +443,7 @@ export interface AtlasGlossaryTerm extends AtlasGlossaryBaseObject { validValuesFor?: Array; } -// @public (undocumented) +// @public export interface AtlasGlossaryTermOutput extends AtlasGlossaryBaseObjectOutput { abbreviation?: string; anchor?: AtlasGlossaryHeaderOutput; @@ -474,7 +476,7 @@ export interface AtlasGlossaryTermOutput extends AtlasGlossaryBaseObjectOutput { validValuesFor?: Array; } -// @public (undocumented) +// @public export interface AtlasLineageInfoOutput { baseEntityGuid?: string; childrenCount?: number; @@ -488,21 +490,21 @@ export interface AtlasLineageInfoOutput { widthCounts?: Record>>; } -// @public (undocumented) +// @public export interface AtlasObjectId { guid?: string; typeName?: string; uniqueAttributes?: Record>; } -// @public (undocumented) +// @public export interface AtlasObjectIdOutput { guid?: string; typeName?: string; uniqueAttributes?: Record>; } -// @public (undocumented) +// @public export interface AtlasRelatedCategoryHeader { categoryGuid?: string; description?: string; @@ -511,7 +513,7 @@ export interface AtlasRelatedCategoryHeader { relationGuid?: string; } -// @public (undocumented) +// @public export interface AtlasRelatedCategoryHeaderOutput { categoryGuid?: string; description?: string; @@ -520,7 +522,7 @@ export interface AtlasRelatedCategoryHeaderOutput { relationGuid?: string; } -// @public (undocumented) +// @public export interface AtlasRelatedObjectId extends AtlasObjectId { displayText?: string; entityStatus?: "ACTIVE" | "DELETED"; @@ -531,7 +533,7 @@ export interface AtlasRelatedObjectId extends AtlasObjectId { relationshipType?: string; } -// @public (undocumented) +// @public export interface AtlasRelatedObjectIdOutput extends AtlasObjectIdOutput { displayText?: string; entityStatus?: "ACTIVE" | "DELETED"; @@ -542,7 +544,7 @@ export interface AtlasRelatedObjectIdOutput extends AtlasObjectIdOutput { relationshipType?: string; } -// @public (undocumented) +// @public export interface AtlasRelatedTermHeader { description?: string; displayText?: string; @@ -554,7 +556,7 @@ export interface AtlasRelatedTermHeader { termGuid?: string; } -// @public (undocumented) +// @public export interface AtlasRelatedTermHeaderOutput { description?: string; displayText?: string; @@ -566,7 +568,7 @@ export interface AtlasRelatedTermHeaderOutput { termGuid?: string; } -// @public (undocumented) +// @public export interface AtlasRelationship extends AtlasStruct { createdBy?: string; createTime?: number; @@ -582,19 +584,19 @@ export interface AtlasRelationship extends AtlasStruct { version?: number; } -// @public (undocumented) +// @public export interface AtlasRelationshipAttributeDef extends AtlasAttributeDef { isLegacyAttribute?: boolean; relationshipTypeName?: string; } -// @public (undocumented) +// @public export interface AtlasRelationshipAttributeDefOutput extends AtlasAttributeDefOutput { isLegacyAttribute?: boolean; relationshipTypeName?: string; } -// @public (undocumented) +// @public export interface AtlasRelationshipDef extends AtlasStructDef { endDef1?: AtlasRelationshipEndDef; endDef2?: AtlasRelationshipEndDef; @@ -602,7 +604,7 @@ export interface AtlasRelationshipDef extends AtlasStructDef { relationshipLabel?: string; } -// @public (undocumented) +// @public export interface AtlasRelationshipDefOutput extends AtlasStructDefOutput { endDef1?: AtlasRelationshipEndDefOutput; endDef2?: AtlasRelationshipEndDefOutput; @@ -610,7 +612,7 @@ export interface AtlasRelationshipDefOutput extends AtlasStructDefOutput { relationshipLabel?: string; } -// @public (undocumented) +// @public export interface AtlasRelationshipEndDef { cardinality?: "SINGLE" | "LIST" | "SET"; description?: string; @@ -620,7 +622,7 @@ export interface AtlasRelationshipEndDef { type?: string; } -// @public (undocumented) +// @public export interface AtlasRelationshipEndDefOutput { cardinality?: "SINGLE" | "LIST" | "SET"; description?: string; @@ -630,7 +632,7 @@ export interface AtlasRelationshipEndDefOutput { type?: string; } -// @public (undocumented) +// @public export interface AtlasRelationshipOutput extends AtlasStructOutput { createdBy?: string; createTime?: number; @@ -646,37 +648,37 @@ export interface AtlasRelationshipOutput extends AtlasStructOutput { version?: number; } -// @public (undocumented) +// @public export interface AtlasRelationshipWithExtInfoOutput { referredEntities?: Record; relationship?: AtlasRelationshipOutput; } -// @public (undocumented) +// @public export interface AtlasStruct { attributes?: Record>; lastModifiedTS?: string; typeName?: string; } -// @public (undocumented) +// @public export interface AtlasStructDef extends AtlasBaseTypeDef { attributeDefs?: Array; } -// @public (undocumented) +// @public export interface AtlasStructDefOutput extends AtlasBaseTypeDefOutput { attributeDefs?: Array; } -// @public (undocumented) +// @public export interface AtlasStructOutput { attributes?: Record>; lastModifiedTS?: string; typeName?: string; } -// @public (undocumented) +// @public export interface AtlasTermAssignmentHeader { confidence?: number; createdBy?: string; @@ -690,7 +692,7 @@ export interface AtlasTermAssignmentHeader { termGuid?: string; } -// @public (undocumented) +// @public export interface AtlasTermAssignmentHeaderOutput { confidence?: number; createdBy?: string; @@ -704,7 +706,7 @@ export interface AtlasTermAssignmentHeaderOutput { termGuid?: string; } -// @public (undocumented) +// @public export interface AtlasTermCategorizationHeader { categoryGuid?: string; description?: string; @@ -713,7 +715,7 @@ export interface AtlasTermCategorizationHeader { status?: "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; } -// @public (undocumented) +// @public export interface AtlasTermCategorizationHeaderOutput { categoryGuid?: string; description?: string; @@ -722,22 +724,22 @@ export interface AtlasTermCategorizationHeaderOutput { status?: "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; } -// @public (undocumented) +// @public export interface AtlasTypeDef extends AtlasBaseTypeDef, AtlasExtraTypeDef { } -// @public (undocumented) +// @public export interface AtlasTypeDefHeaderOutput { category?: "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE"; guid?: string; name?: string; } -// @public (undocumented) +// @public export interface AtlasTypeDefOutput extends AtlasBaseTypeDefOutput, AtlasExtraTypeDefOutput { } -// @public (undocumented) +// @public export interface AtlasTypesDef { businessMetadataDefs?: Array; classificationDefs?: Array; @@ -748,7 +750,7 @@ export interface AtlasTypesDef { termTemplateDefs?: Array; } -// @public (undocumented) +// @public export interface AtlasTypesDefOutput { businessMetadataDefs?: Array; classificationDefs?: Array; @@ -759,26 +761,26 @@ export interface AtlasTypesDefOutput { termTemplateDefs?: Array; } -// @public (undocumented) +// @public export interface AutoCompleteRequest { filter?: Record; keywords?: string; limit?: number; } -// @public (undocumented) +// @public export interface AutoCompleteResultOutput { // (undocumented) value?: Array; } -// @public (undocumented) +// @public export interface AutoCompleteResultValueOutput { queryPlusText?: string; text?: string; } -// @public (undocumented) +// @public export interface BrowseRequest { entityType?: string; limit?: number; @@ -786,14 +788,14 @@ export interface BrowseRequest { path?: string; } -// @public (undocumented) +// @public export interface BrowseResultOutput { "@search.count"?: number; // (undocumented) value?: Array; } -// @public (undocumented) +// @public export interface BrowseResultOwnerOutput { contactType?: string; displayName?: string; @@ -801,7 +803,7 @@ export interface BrowseResultOwnerOutput { mail?: string; } -// @public (undocumented) +// @public export interface BrowseResultValueOutput { entityType?: string; id?: string; @@ -813,12 +815,15 @@ export interface BrowseResultValueOutput { } // @public (undocumented) +export function buildMultiCollection(items: string[], parameterName: string): string; + +// @public export interface BulkImportResponseOutput { failedImportInfoList?: Array; successImportInfoList?: Array; } -// @public (undocumented) +// @public export interface ClassificationAssociateRequest { classification?: AtlasClassification; entityGuids?: Array; @@ -826,7 +831,7 @@ export interface ClassificationAssociateRequest { // @public (undocumented) export interface CollectionCreateOrUpdate { - post(options: CollectionCreateOrUpdateParameters): Promise; + post(options: CollectionCreateOrUpdateParameters): StreamableMethod; } // @public @@ -844,7 +849,7 @@ export interface CollectionCreateOrUpdateBodyParam { // @public (undocumented) export interface CollectionCreateOrUpdateBulk { - post(options: CollectionCreateOrUpdateBulkParameters): Promise; + post(options: CollectionCreateOrUpdateBulkParameters): StreamableMethod; } // @public @@ -861,11 +866,11 @@ export interface CollectionCreateOrUpdateBulkBodyParam { } // @public -export interface CollectionCreateOrUpdateBulkdefaultResponse extends HttpResponse { +export interface CollectionCreateOrUpdateBulkDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -877,11 +882,11 @@ export interface CollectionCreateOrUpdateBulkMediaTypesParam { export type CollectionCreateOrUpdateBulkParameters = CollectionCreateOrUpdateBulkMediaTypesParam & CollectionCreateOrUpdateBulkBodyParam & RequestParameters; // @public -export interface CollectionCreateOrUpdatedefaultResponse extends HttpResponse { +export interface CollectionCreateOrUpdateDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -894,7 +899,7 @@ export type CollectionCreateOrUpdateParameters = CollectionCreateOrUpdateMediaTy // @public (undocumented) export interface CollectionMoveEntitiesToCollection { - post(options: CollectionMoveEntitiesToCollectionParameters): Promise; + post(options: CollectionMoveEntitiesToCollectionParameters): StreamableMethod; } // @public @@ -911,11 +916,11 @@ export interface CollectionMoveEntitiesToCollectionBodyParam { } // @public -export interface CollectionMoveEntitiesToCollectiondefaultResponse extends HttpResponse { +export interface CollectionMoveEntitiesToCollectionDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -926,30 +931,30 @@ export interface CollectionMoveEntitiesToCollectionMediaTypesParam { // @public (undocumented) export type CollectionMoveEntitiesToCollectionParameters = CollectionMoveEntitiesToCollectionMediaTypesParam & CollectionMoveEntitiesToCollectionBodyParam & RequestParameters; -// @public (undocumented) +// @public export interface ContactBasic { id?: string; info?: string; } -// @public (undocumented) +// @public export interface ContactBasicOutput { id?: string; info?: string; } -// @public (undocumented) +// @public export interface ContactSearchResultValueOutput { contactType?: string; id?: string; info?: string; } -// @public (undocumented) -function createClient(Endpoint: string, credentials: TokenCredential, options?: ClientOptions): PurviewCatalogClient; +// @public +function createClient(endpoint: string, credentials: TokenCredential, { apiVersion, ...options }?: PurviewCatalogClientOptions): PurviewCatalogClient; export default createClient; -// @public (undocumented) +// @public export interface DateFormat { availableLocales?: Array; // (undocumented) @@ -963,7 +968,7 @@ export interface DateFormat { timeZone?: TimeZone; } -// @public (undocumented) +// @public export interface DateFormatOutput { availableLocales?: Array; // (undocumented) @@ -979,7 +984,7 @@ export interface DateFormatOutput { // @public (undocumented) export interface DiscoveryAutoComplete { - post(options: DiscoveryAutoCompleteParameters): Promise; + post(options: DiscoveryAutoCompleteParameters): StreamableMethod; } // @public @@ -996,11 +1001,11 @@ export interface DiscoveryAutoCompleteBodyParam { } // @public -export interface DiscoveryAutoCompletedefaultResponse extends HttpResponse { +export interface DiscoveryAutoCompleteDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1013,7 +1018,7 @@ export type DiscoveryAutoCompleteParameters = DiscoveryAutoCompleteMediaTypesPar // @public (undocumented) export interface DiscoveryBrowse { - post(options: DiscoveryBrowseParameters): Promise; + post(options: DiscoveryBrowseParameters): StreamableMethod; } // @public @@ -1030,11 +1035,11 @@ export interface DiscoveryBrowseBodyParam { } // @public -export interface DiscoveryBrowsedefaultResponse extends HttpResponse { +export interface DiscoveryBrowseDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1047,7 +1052,7 @@ export type DiscoveryBrowseParameters = DiscoveryBrowseMediaTypesParam & Discove // @public (undocumented) export interface DiscoveryQuery { - post(options: DiscoveryQueryParameters): Promise; + post(options: DiscoveryQueryParameters): StreamableMethod; } // @public @@ -1064,11 +1069,11 @@ export interface DiscoveryQueryBodyParam { } // @public -export interface DiscoveryQuerydefaultResponse extends HttpResponse { +export interface DiscoveryQueryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1081,7 +1086,7 @@ export type DiscoveryQueryParameters = DiscoveryQueryMediaTypesParam & Discovery // @public (undocumented) export interface DiscoverySuggest { - post(options: DiscoverySuggestParameters): Promise; + post(options: DiscoverySuggestParameters): StreamableMethod; } // @public @@ -1098,11 +1103,11 @@ export interface DiscoverySuggestBodyParam { } // @public -export interface DiscoverySuggestdefaultResponse extends HttpResponse { +export interface DiscoverySuggestDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1115,13 +1120,11 @@ export type DiscoverySuggestParameters = DiscoverySuggestMediaTypesParam & Disco // @public (undocumented) export interface EntityAddClassification { - post(options: EntityAddClassificationParameters): Promise; + post(options: EntityAddClassificationParameters): StreamableMethod; } // @public export interface EntityAddClassification204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1132,11 +1135,11 @@ export interface EntityAddClassificationBodyParam { } // @public -export interface EntityAddClassificationdefaultResponse extends HttpResponse { +export interface EntityAddClassificationDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1149,8 +1152,6 @@ export type EntityAddClassificationParameters = EntityAddClassificationMediaType // @public export interface EntityAddClassifications204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1162,14 +1163,12 @@ export interface EntityAddClassificationsBodyParam { // @public (undocumented) export interface EntityAddClassificationsByUniqueAttribute { - post(options: EntityAddClassificationsByUniqueAttributeParameters): Promise; - put(options: EntityUpdateClassificationsByUniqueAttributeParameters): Promise; + post(options: EntityAddClassificationsByUniqueAttributeParameters): StreamableMethod; + put(options: EntityUpdateClassificationsByUniqueAttributeParameters): StreamableMethod; } // @public export interface EntityAddClassificationsByUniqueAttribute204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1180,11 +1179,11 @@ export interface EntityAddClassificationsByUniqueAttributeBodyParam { } // @public -export interface EntityAddClassificationsByUniqueAttributedefaultResponse extends HttpResponse { +export interface EntityAddClassificationsByUniqueAttributeDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1207,11 +1206,11 @@ export interface EntityAddClassificationsByUniqueAttributeQueryParamProperties { } // @public -export interface EntityAddClassificationsdefaultResponse extends HttpResponse { +export interface EntityAddClassificationsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1224,8 +1223,6 @@ export type EntityAddClassificationsParameters = EntityAddClassificationsMediaTy // @public export interface EntityAddLabel204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1245,8 +1242,6 @@ export type EntityAddLabelParameters = EntityAddLabelMediaTypesParam & EntityAdd // @public export interface EntityAddLabelsByUniqueAttribute204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1277,16 +1272,12 @@ export interface EntityAddLabelsByUniqueAttributeQueryParamProperties { // @public export interface EntityAddOrUpdateBusinessMetadata204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } // @public export interface EntityAddOrUpdateBusinessMetadataAttributes204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1330,7 +1321,7 @@ export interface EntityAddOrUpdateBusinessMetadataQueryParamProperties { // @public (undocumented) export interface EntityCreateOrUpdate { - post(options: EntityCreateOrUpdateParameters): Promise; + post(options: EntityCreateOrUpdateParameters): StreamableMethod; } // @public @@ -1347,11 +1338,11 @@ export interface EntityCreateOrUpdateBodyParam { } // @public -export interface EntityCreateOrUpdatedefaultResponse extends HttpResponse { +export interface EntityCreateOrUpdateDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public @@ -1368,11 +1359,11 @@ export interface EntityCreateOrUpdateEntitiesBodyParam { } // @public -export interface EntityCreateOrUpdateEntitiesdefaultResponse extends HttpResponse { +export interface EntityCreateOrUpdateEntitiesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1393,28 +1384,24 @@ export type EntityCreateOrUpdateParameters = EntityCreateOrUpdateMediaTypesParam // @public (undocumented) export interface EntityDeleteBusinessMetadata { - delete(options?: EntityDeleteBusinessMetadataParameters): Promise; - post(options?: EntityAddOrUpdateBusinessMetadataParameters): Promise; + delete(options?: EntityDeleteBusinessMetadataParameters): StreamableMethod; + post(options?: EntityAddOrUpdateBusinessMetadataParameters): StreamableMethod; } // @public export interface EntityDeleteBusinessMetadata204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } // @public (undocumented) export interface EntityDeleteBusinessMetadataAttributes { - delete(options?: EntityDeleteBusinessMetadataAttributesParameters): Promise; - post(options?: EntityAddOrUpdateBusinessMetadataAttributesParameters): Promise; + delete(options?: EntityDeleteBusinessMetadataAttributesParameters): StreamableMethod; + post(options?: EntityAddOrUpdateBusinessMetadataAttributesParameters): StreamableMethod; } // @public export interface EntityDeleteBusinessMetadataAttributes204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1454,11 +1441,11 @@ export interface EntityDeleteByGuid200Response extends HttpResponse { } // @public -export interface EntityDeleteByGuiddefaultResponse extends HttpResponse { +export interface EntityDeleteByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1473,11 +1460,11 @@ export interface EntityDeleteByGuids200Response extends HttpResponse { } // @public -export interface EntityDeleteByGuidsdefaultResponse extends HttpResponse { +export interface EntityDeleteByGuidsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1491,7 +1478,7 @@ export interface EntityDeleteByGuidsQueryParam { // @public (undocumented) export interface EntityDeleteByGuidsQueryParamProperties { - guid: Array; + guid: string; } // @public @@ -1503,11 +1490,11 @@ export interface EntityDeleteByUniqueAttribute200Response extends HttpResponse { } // @public -export interface EntityDeleteByUniqueAttributedefaultResponse extends HttpResponse { +export interface EntityDeleteByUniqueAttributeDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1526,31 +1513,27 @@ export interface EntityDeleteByUniqueAttributeQueryParamProperties { // @public export interface EntityDeleteClassification204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } // @public (undocumented) export interface EntityDeleteClassificationByUniqueAttribute { - delete(options?: EntityDeleteClassificationByUniqueAttributeParameters): Promise; + delete(options?: EntityDeleteClassificationByUniqueAttributeParameters): StreamableMethod; } // @public export interface EntityDeleteClassificationByUniqueAttribute204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } // @public -export interface EntityDeleteClassificationByUniqueAttributedefaultResponse extends HttpResponse { +export interface EntityDeleteClassificationByUniqueAttributeDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1568,11 +1551,11 @@ export interface EntityDeleteClassificationByUniqueAttributeQueryParamProperties } // @public -export interface EntityDeleteClassificationdefaultResponse extends HttpResponse { +export interface EntityDeleteClassificationDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1580,15 +1563,13 @@ export type EntityDeleteClassificationParameters = RequestParameters; // @public (undocumented) export interface EntityDeleteLabels { - delete(options?: EntityDeleteLabelsParameters): Promise; - post(options?: EntitySetLabelsParameters): Promise; - put(options?: EntityAddLabelParameters): Promise; + delete(options?: EntityDeleteLabelsParameters): StreamableMethod; + post(options?: EntitySetLabelsParameters): StreamableMethod; + put(options?: EntityAddLabelParameters): StreamableMethod; } // @public export interface EntityDeleteLabels204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1600,15 +1581,13 @@ export interface EntityDeleteLabelsBodyParam { // @public (undocumented) export interface EntityDeleteLabelsByUniqueAttribute { - delete(options?: EntityDeleteLabelsByUniqueAttributeParameters): Promise; - post(options?: EntitySetLabelsByUniqueAttributeParameters): Promise; - put(options?: EntityAddLabelsByUniqueAttributeParameters): Promise; + delete(options?: EntityDeleteLabelsByUniqueAttributeParameters): StreamableMethod; + post(options?: EntitySetLabelsByUniqueAttributeParameters): StreamableMethod; + put(options?: EntityAddLabelsByUniqueAttributeParameters): StreamableMethod; } // @public export interface EntityDeleteLabelsByUniqueAttribute204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -1647,9 +1626,9 @@ export type EntityDeleteLabelsParameters = EntityDeleteLabelsMediaTypesParam & E // @public (undocumented) export interface EntityGetByGuid { - delete(options?: EntityDeleteByGuidParameters): Promise; - get(options?: EntityGetByGuidParameters): Promise; - put(options: EntityPartialUpdateEntityAttributeByGuidParameters): Promise; + delete(options?: EntityDeleteByGuidParameters): StreamableMethod; + get(options?: EntityGetByGuidParameters): StreamableMethod; + put(options: EntityPartialUpdateEntityAttributeByGuidParameters): StreamableMethod; } // @public @@ -1661,11 +1640,11 @@ export interface EntityGetByGuid200Response extends HttpResponse { } // @public -export interface EntityGetByGuiddefaultResponse extends HttpResponse { +export interface EntityGetByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1685,9 +1664,9 @@ export interface EntityGetByGuidQueryParamProperties { // @public (undocumented) export interface EntityGetByUniqueAttributes { - delete(options?: EntityDeleteByUniqueAttributeParameters): Promise; - get(options?: EntityGetByUniqueAttributesParameters): Promise; - put(options: EntityPartialUpdateEntityByUniqueAttributesParameters): Promise; + delete(options?: EntityDeleteByUniqueAttributeParameters): StreamableMethod; + get(options?: EntityGetByUniqueAttributesParameters): StreamableMethod; + put(options: EntityPartialUpdateEntityByUniqueAttributesParameters): StreamableMethod; } // @public @@ -1699,11 +1678,11 @@ export interface EntityGetByUniqueAttributes200Response extends HttpResponse { } // @public -export interface EntityGetByUniqueAttributesdefaultResponse extends HttpResponse { +export interface EntityGetByUniqueAttributesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1724,8 +1703,8 @@ export interface EntityGetByUniqueAttributesQueryParamProperties { // @public (undocumented) export interface EntityGetClassification { - delete(options?: EntityDeleteClassificationParameters): Promise; - get(options?: EntityGetClassificationParameters): Promise; + delete(options?: EntityDeleteClassificationParameters): StreamableMethod; + get(options?: EntityGetClassificationParameters): StreamableMethod; } // @public @@ -1737,11 +1716,11 @@ export interface EntityGetClassification200Response extends HttpResponse { } // @public -export interface EntityGetClassificationdefaultResponse extends HttpResponse { +export interface EntityGetClassificationDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1749,9 +1728,9 @@ export type EntityGetClassificationParameters = RequestParameters; // @public (undocumented) export interface EntityGetClassifications { - get(options?: EntityGetClassificationsParameters): Promise; - post(options: EntityAddClassificationsParameters): Promise; - put(options: EntityUpdateClassificationsParameters): Promise; + get(options?: EntityGetClassificationsParameters): StreamableMethod; + post(options: EntityAddClassificationsParameters): StreamableMethod; + put(options: EntityUpdateClassificationsParameters): StreamableMethod; } // @public @@ -1763,11 +1742,11 @@ export interface EntityGetClassifications200Response extends HttpResponse { } // @public -export interface EntityGetClassificationsdefaultResponse extends HttpResponse { +export interface EntityGetClassificationsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1775,7 +1754,7 @@ export type EntityGetClassificationsParameters = RequestParameters; // @public (undocumented) export interface EntityGetEntitiesByUniqueAttributes { - get(options?: EntityGetEntitiesByUniqueAttributesParameters): Promise; + get(options?: EntityGetEntitiesByUniqueAttributesParameters): StreamableMethod; } // @public @@ -1787,11 +1766,11 @@ export interface EntityGetEntitiesByUniqueAttributes200Response extends HttpResp } // @public -export interface EntityGetEntitiesByUniqueAttributesdefaultResponse extends HttpResponse { +export interface EntityGetEntitiesByUniqueAttributesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1812,7 +1791,7 @@ export interface EntityGetEntitiesByUniqueAttributesQueryParamProperties { // @public (undocumented) export interface EntityGetHeader { - get(options?: EntityGetHeaderParameters): Promise; + get(options?: EntityGetHeaderParameters): StreamableMethod; } // @public @@ -1824,11 +1803,11 @@ export interface EntityGetHeader200Response extends HttpResponse { } // @public -export interface EntityGetHeaderdefaultResponse extends HttpResponse { +export interface EntityGetHeaderDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1836,7 +1815,7 @@ export type EntityGetHeaderParameters = RequestParameters; // @public (undocumented) export interface EntityGetSampleBusinessMetadataTemplate { - get(options?: EntityGetSampleBusinessMetadataTemplateParameters): Promise; + get(options?: EntityGetSampleBusinessMetadataTemplateParameters): StreamableMethod; } // @public @@ -1848,8 +1827,6 @@ export interface EntityGetSampleBusinessMetadataTemplate200Response extends Http // @public export interface EntityGetSampleBusinessMetadataTemplate400Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "400"; } @@ -1859,7 +1836,7 @@ export type EntityGetSampleBusinessMetadataTemplateParameters = RequestParameter // @public (undocumented) export interface EntityImportBusinessMetadata { - post(options?: EntityImportBusinessMetadataParameters): Promise; + post(options?: EntityImportBusinessMetadataParameters): StreamableMethod; } // @public @@ -1872,16 +1849,12 @@ export interface EntityImportBusinessMetadata200Response extends HttpResponse { // @public export interface EntityImportBusinessMetadata400Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "400"; } // @public export interface EntityImportBusinessMetadata409Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "409"; } @@ -1894,7 +1867,7 @@ export interface EntityImportBusinessMetadataBodyParam { // @public (undocumented) export interface EntityImportBusinessMetadataFormBody { - uploadedInputStream?: string | Uint8Array; + uploadedInputStream?: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; } // @public (undocumented) @@ -1907,9 +1880,9 @@ export type EntityImportBusinessMetadataParameters = EntityImportBusinessMetadat // @public (undocumented) export interface EntityListByGuids { - delete(options: EntityDeleteByGuidsParameters): Promise; - get(options: EntityListByGuidsParameters): Promise; - post(options: EntityCreateOrUpdateEntitiesParameters): Promise; + delete(options: EntityDeleteByGuidsParameters): StreamableMethod; + get(options: EntityListByGuidsParameters): StreamableMethod; + post(options: EntityCreateOrUpdateEntitiesParameters): StreamableMethod; } // @public @@ -1921,11 +1894,11 @@ export interface EntityListByGuids200Response extends HttpResponse { } // @public -export interface EntityListByGuidsdefaultResponse extends HttpResponse { +export interface EntityListByGuidsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -1939,13 +1912,13 @@ export interface EntityListByGuidsQueryParam { // @public (undocumented) export interface EntityListByGuidsQueryParamProperties { - excludeRelationshipTypes?: Array; - guid: Array; + excludeRelationshipTypes?: string; + guid: string; ignoreRelationships?: boolean; minExtInfo?: boolean; } -// @public (undocumented) +// @public export interface EntityMutationResponseOutput { guidAssignments?: Record; mutatedEntities?: Record>; @@ -1966,11 +1939,11 @@ export interface EntityPartialUpdateEntityAttributeByGuidBodyParam { } // @public -export interface EntityPartialUpdateEntityAttributeByGuiddefaultResponse extends HttpResponse { +export interface EntityPartialUpdateEntityAttributeByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2006,11 +1979,11 @@ export interface EntityPartialUpdateEntityByUniqueAttributesBodyParam { } // @public -export interface EntityPartialUpdateEntityByUniqueAttributesdefaultResponse extends HttpResponse { +export interface EntityPartialUpdateEntityByUniqueAttributesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2034,7 +2007,7 @@ export interface EntityPartialUpdateEntityByUniqueAttributesQueryParamProperties // @public (undocumented) export interface EntitySetClassifications { - post(options: EntitySetClassificationsParameters): Promise; + post(options: EntitySetClassificationsParameters): StreamableMethod; } // @public @@ -2051,11 +2024,11 @@ export interface EntitySetClassificationsBodyParam { } // @public -export interface EntitySetClassificationsdefaultResponse extends HttpResponse { +export interface EntitySetClassificationsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2068,8 +2041,6 @@ export type EntitySetClassificationsParameters = EntitySetClassificationsMediaTy // @public export interface EntitySetLabels204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2081,8 +2052,6 @@ export interface EntitySetLabelsBodyParam { // @public export interface EntitySetLabelsByUniqueAttribute204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2121,8 +2090,6 @@ export type EntitySetLabelsParameters = EntitySetLabelsMediaTypesParam & EntityS // @public export interface EntityUpdateClassifications204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2134,8 +2101,6 @@ export interface EntityUpdateClassificationsBodyParam { // @public export interface EntityUpdateClassificationsByUniqueAttribute204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2146,11 +2111,11 @@ export interface EntityUpdateClassificationsByUniqueAttributeBodyParam { } // @public -export interface EntityUpdateClassificationsByUniqueAttributedefaultResponse extends HttpResponse { +export interface EntityUpdateClassificationsByUniqueAttributeDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2173,11 +2138,11 @@ export interface EntityUpdateClassificationsByUniqueAttributeQueryParamPropertie } // @public -export interface EntityUpdateClassificationsdefaultResponse extends HttpResponse { +export interface EntityUpdateClassificationsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2188,7 +2153,7 @@ export interface EntityUpdateClassificationsMediaTypesParam { // @public (undocumented) export type EntityUpdateClassificationsParameters = EntityUpdateClassificationsMediaTypesParam & EntityUpdateClassificationsBodyParam & RequestParameters; -// @public (undocumented) +// @public export interface ErrorResponseOutput { errorCode?: string; errorMessage?: string; @@ -2196,12 +2161,10 @@ export interface ErrorResponseOutput { } // @public -export function getLongRunningPoller(client: Client, initialResponse: TResult, options?: LroEngineOptions>): PollerLike, TResult>; +export function getLongRunningPoller(client: Client, initialResponse: TResult, options?: CreateHttpPollerOptions>): Promise, TResult>>; // @public export interface GlossaryAssignTermToEntities204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2212,11 +2175,11 @@ export interface GlossaryAssignTermToEntitiesBodyParam { } // @public -export interface GlossaryAssignTermToEntitiesdefaultResponse extends HttpResponse { +export interface GlossaryAssignTermToEntitiesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2242,7 +2205,7 @@ export interface GlossaryCreateGlossaryBodyParam { // @public (undocumented) export interface GlossaryCreateGlossaryCategories { - post(options: GlossaryCreateGlossaryCategoriesParameters): Promise; + post(options: GlossaryCreateGlossaryCategoriesParameters): StreamableMethod; } // @public @@ -2259,11 +2222,11 @@ export interface GlossaryCreateGlossaryCategoriesBodyParam { } // @public -export interface GlossaryCreateGlossaryCategoriesdefaultResponse extends HttpResponse { +export interface GlossaryCreateGlossaryCategoriesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2276,7 +2239,7 @@ export type GlossaryCreateGlossaryCategoriesParameters = GlossaryCreateGlossaryC // @public (undocumented) export interface GlossaryCreateGlossaryCategory { - post(options: GlossaryCreateGlossaryCategoryParameters): Promise; + post(options: GlossaryCreateGlossaryCategoryParameters): StreamableMethod; } // @public @@ -2293,11 +2256,11 @@ export interface GlossaryCreateGlossaryCategoryBodyParam { } // @public -export interface GlossaryCreateGlossaryCategorydefaultResponse extends HttpResponse { +export interface GlossaryCreateGlossaryCategoryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2309,11 +2272,11 @@ export interface GlossaryCreateGlossaryCategoryMediaTypesParam { export type GlossaryCreateGlossaryCategoryParameters = GlossaryCreateGlossaryCategoryMediaTypesParam & GlossaryCreateGlossaryCategoryBodyParam & RequestParameters; // @public -export interface GlossaryCreateGlossarydefaultResponse extends HttpResponse { +export interface GlossaryCreateGlossaryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2326,7 +2289,7 @@ export type GlossaryCreateGlossaryParameters = GlossaryCreateGlossaryMediaTypesP // @public (undocumented) export interface GlossaryCreateGlossaryTerm { - post(options: GlossaryCreateGlossaryTermParameters): Promise; + post(options: GlossaryCreateGlossaryTermParameters): StreamableMethod; } // @public @@ -2343,11 +2306,11 @@ export interface GlossaryCreateGlossaryTermBodyParam { } // @public -export interface GlossaryCreateGlossaryTermdefaultResponse extends HttpResponse { +export interface GlossaryCreateGlossaryTermDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2371,7 +2334,7 @@ export interface GlossaryCreateGlossaryTermQueryParamProperties { // @public (undocumented) export interface GlossaryCreateGlossaryTerms { - post(options: GlossaryCreateGlossaryTermsParameters): Promise; + post(options: GlossaryCreateGlossaryTermsParameters): StreamableMethod; } // @public @@ -2388,11 +2351,11 @@ export interface GlossaryCreateGlossaryTermsBodyParam { } // @public -export interface GlossaryCreateGlossaryTermsdefaultResponse extends HttpResponse { +export interface GlossaryCreateGlossaryTermsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2416,37 +2379,33 @@ export interface GlossaryCreateGlossaryTermsQueryParamProperties { // @public export interface GlossaryDeleteGlossary204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } // @public export interface GlossaryDeleteGlossaryCategory204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } // @public -export interface GlossaryDeleteGlossaryCategorydefaultResponse extends HttpResponse { +export interface GlossaryDeleteGlossaryCategoryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) export type GlossaryDeleteGlossaryCategoryParameters = RequestParameters; // @public -export interface GlossaryDeleteGlossarydefaultResponse extends HttpResponse { +export interface GlossaryDeleteGlossaryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2454,18 +2413,16 @@ export type GlossaryDeleteGlossaryParameters = RequestParameters; // @public export interface GlossaryDeleteGlossaryTerm204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } // @public -export interface GlossaryDeleteGlossaryTermdefaultResponse extends HttpResponse { +export interface GlossaryDeleteGlossaryTermDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2473,8 +2430,6 @@ export type GlossaryDeleteGlossaryTermParameters = RequestParameters; // @public export interface GlossaryDeleteTermAssignmentFromEntities204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -2485,11 +2440,11 @@ export interface GlossaryDeleteTermAssignmentFromEntitiesBodyParam { } // @public -export interface GlossaryDeleteTermAssignmentFromEntitiesdefaultResponse extends HttpResponse { +export interface GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2502,7 +2457,7 @@ export type GlossaryDeleteTermAssignmentFromEntitiesParameters = GlossaryDeleteT // @public (undocumented) export interface GlossaryExportGlossaryTermsAsCsv { - post(options: GlossaryExportGlossaryTermsAsCsvParameters): Promise; + post(options: GlossaryExportGlossaryTermsAsCsvParameters): StreamableMethod; } // @public @@ -2518,11 +2473,11 @@ export interface GlossaryExportGlossaryTermsAsCsvBodyParam { } // @public -export interface GlossaryExportGlossaryTermsAsCsvdefaultResponse extends HttpResponse { +export interface GlossaryExportGlossaryTermsAsCsvDefaultResponse extends HttpResponse { // (undocumented) - body: Record; + body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2546,7 +2501,7 @@ export interface GlossaryExportGlossaryTermsAsCsvQueryParamProperties { // @public (undocumented) export interface GlossaryGetDetailedGlossary { - get(options?: GlossaryGetDetailedGlossaryParameters): Promise; + get(options?: GlossaryGetDetailedGlossaryParameters): StreamableMethod; } // @public @@ -2558,11 +2513,11 @@ export interface GlossaryGetDetailedGlossary200Response extends HttpResponse { } // @public -export interface GlossaryGetDetailedGlossarydefaultResponse extends HttpResponse { +export interface GlossaryGetDetailedGlossaryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2581,10 +2536,10 @@ export interface GlossaryGetDetailedGlossaryQueryParamProperties { // @public (undocumented) export interface GlossaryGetEntitiesAssignedWithTerm { - delete(options: GlossaryDeleteTermAssignmentFromEntitiesParameters): Promise; - get(options?: GlossaryGetEntitiesAssignedWithTermParameters): Promise; - post(options: GlossaryAssignTermToEntitiesParameters): Promise; - put(options: GlossaryRemoveTermAssignmentFromEntitiesParameters): Promise; + delete(options: GlossaryDeleteTermAssignmentFromEntitiesParameters): StreamableMethod; + get(options?: GlossaryGetEntitiesAssignedWithTermParameters): StreamableMethod; + post(options: GlossaryAssignTermToEntitiesParameters): StreamableMethod; + put(options: GlossaryRemoveTermAssignmentFromEntitiesParameters): StreamableMethod; } // @public @@ -2596,11 +2551,11 @@ export interface GlossaryGetEntitiesAssignedWithTerm200Response extends HttpResp } // @public -export interface GlossaryGetEntitiesAssignedWithTermdefaultResponse extends HttpResponse { +export interface GlossaryGetEntitiesAssignedWithTermDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2621,9 +2576,9 @@ export interface GlossaryGetEntitiesAssignedWithTermQueryParamProperties { // @public (undocumented) export interface GlossaryGetGlossary { - delete(options?: GlossaryDeleteGlossaryParameters): Promise; - get(options?: GlossaryGetGlossaryParameters): Promise; - put(options: GlossaryUpdateGlossaryParameters): Promise; + delete(options?: GlossaryDeleteGlossaryParameters): StreamableMethod; + get(options?: GlossaryGetGlossaryParameters): StreamableMethod; + put(options: GlossaryUpdateGlossaryParameters): StreamableMethod; } // @public @@ -2636,9 +2591,9 @@ export interface GlossaryGetGlossary200Response extends HttpResponse { // @public (undocumented) export interface GlossaryGetGlossaryCategory { - delete(options?: GlossaryDeleteGlossaryCategoryParameters): Promise; - get(options?: GlossaryGetGlossaryCategoryParameters): Promise; - put(options: GlossaryUpdateGlossaryCategoryParameters): Promise; + delete(options?: GlossaryDeleteGlossaryCategoryParameters): StreamableMethod; + get(options?: GlossaryGetGlossaryCategoryParameters): StreamableMethod; + put(options: GlossaryUpdateGlossaryCategoryParameters): StreamableMethod; } // @public @@ -2650,22 +2605,22 @@ export interface GlossaryGetGlossaryCategory200Response extends HttpResponse { } // @public -export interface GlossaryGetGlossaryCategorydefaultResponse extends HttpResponse { +export interface GlossaryGetGlossaryCategoryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) export type GlossaryGetGlossaryCategoryParameters = RequestParameters; // @public -export interface GlossaryGetGlossarydefaultResponse extends HttpResponse { +export interface GlossaryGetGlossaryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2673,9 +2628,9 @@ export type GlossaryGetGlossaryParameters = RequestParameters; // @public (undocumented) export interface GlossaryGetGlossaryTerm { - delete(options?: GlossaryDeleteGlossaryTermParameters): Promise; - get(options?: GlossaryGetGlossaryTermParameters): Promise; - put(options: GlossaryUpdateGlossaryTermParameters): Promise; + delete(options?: GlossaryDeleteGlossaryTermParameters): StreamableMethod; + get(options?: GlossaryGetGlossaryTermParameters): StreamableMethod; + put(options: GlossaryUpdateGlossaryTermParameters): StreamableMethod; } // @public @@ -2687,11 +2642,11 @@ export interface GlossaryGetGlossaryTerm200Response extends HttpResponse { } // @public -export interface GlossaryGetGlossaryTermdefaultResponse extends HttpResponse { +export interface GlossaryGetGlossaryTermDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2705,13 +2660,13 @@ export interface GlossaryGetGlossaryTermQueryParam { // @public (undocumented) export interface GlossaryGetGlossaryTermQueryParamProperties { - excludeRelationshipTypes?: Array; + excludeRelationshipTypes?: string; includeTermHierarchy?: boolean; } // @public (undocumented) export interface GlossaryGetImportCsvOperationStatus { - get(options?: GlossaryGetImportCsvOperationStatusParameters): Promise; + get(options?: GlossaryGetImportCsvOperationStatusParameters): StreamableMethod; } // @public @@ -2723,11 +2678,11 @@ export interface GlossaryGetImportCsvOperationStatus200Response extends HttpResp } // @public -export interface GlossaryGetImportCsvOperationStatusdefaultResponse extends HttpResponse { +export interface GlossaryGetImportCsvOperationStatusDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2735,7 +2690,7 @@ export type GlossaryGetImportCsvOperationStatusParameters = RequestParameters; // @public (undocumented) export interface GlossaryImportGlossaryTermsViaCsv { - post(options: GlossaryImportGlossaryTermsViaCsvParameters): Promise; + post(options: GlossaryImportGlossaryTermsViaCsvParameters): StreamableMethod; } // @public @@ -2754,7 +2709,7 @@ export interface GlossaryImportGlossaryTermsViaCsvBodyParam { // @public (undocumented) export interface GlossaryImportGlossaryTermsViaCsvByGlossaryName { - post(options: GlossaryImportGlossaryTermsViaCsvByGlossaryNameParameters): Promise; + post(options: GlossaryImportGlossaryTermsViaCsvByGlossaryNameParameters): StreamableMethod; } // @public @@ -2772,16 +2727,16 @@ export interface GlossaryImportGlossaryTermsViaCsvByGlossaryNameBodyParam { } // @public -export interface GlossaryImportGlossaryTermsViaCsvByGlossaryNamedefaultResponse extends HttpResponse { +export interface GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) export interface GlossaryImportGlossaryTermsViaCsvByGlossaryNameFormBody { - file: string | Uint8Array; + file: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; } // @public (undocumented) @@ -2804,16 +2759,16 @@ export interface GlossaryImportGlossaryTermsViaCsvByGlossaryNameQueryParamProper } // @public -export interface GlossaryImportGlossaryTermsViaCsvdefaultResponse extends HttpResponse { +export interface GlossaryImportGlossaryTermsViaCsvDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) export interface GlossaryImportGlossaryTermsViaCsvFormBody { - file: string | Uint8Array; + file: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; } // @public (undocumented) @@ -2837,7 +2792,7 @@ export interface GlossaryImportGlossaryTermsViaCsvQueryParamProperties { // @public (undocumented) export interface GlossaryListCategoryTerms { - get(options?: GlossaryListCategoryTermsParameters): Promise; + get(options?: GlossaryListCategoryTermsParameters): StreamableMethod; } // @public @@ -2849,11 +2804,11 @@ export interface GlossaryListCategoryTerms200Response extends HttpResponse { } // @public -export interface GlossaryListCategoryTermsdefaultResponse extends HttpResponse { +export interface GlossaryListCategoryTermsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2874,8 +2829,8 @@ export interface GlossaryListCategoryTermsQueryParamProperties { // @public (undocumented) export interface GlossaryListGlossaries { - get(options?: GlossaryListGlossariesParameters): Promise; - post(options: GlossaryCreateGlossaryParameters): Promise; + get(options?: GlossaryListGlossariesParameters): StreamableMethod; + post(options: GlossaryCreateGlossaryParameters): StreamableMethod; } // @public @@ -2887,11 +2842,11 @@ export interface GlossaryListGlossaries200Response extends HttpResponse { } // @public -export interface GlossaryListGlossariesdefaultResponse extends HttpResponse { +export interface GlossaryListGlossariesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2913,7 +2868,7 @@ export interface GlossaryListGlossariesQueryParamProperties { // @public (undocumented) export interface GlossaryListGlossaryCategories { - get(options?: GlossaryListGlossaryCategoriesParameters): Promise; + get(options?: GlossaryListGlossaryCategoriesParameters): StreamableMethod; } // @public @@ -2925,16 +2880,16 @@ export interface GlossaryListGlossaryCategories200Response extends HttpResponse } // @public -export interface GlossaryListGlossaryCategoriesdefaultResponse extends HttpResponse { +export interface GlossaryListGlossaryCategoriesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) export interface GlossaryListGlossaryCategoriesHeaders { - get(options?: GlossaryListGlossaryCategoriesHeadersParameters): Promise; + get(options?: GlossaryListGlossaryCategoriesHeadersParameters): StreamableMethod; } // @public @@ -2946,11 +2901,11 @@ export interface GlossaryListGlossaryCategoriesHeaders200Response extends HttpRe } // @public -export interface GlossaryListGlossaryCategoriesHeadersdefaultResponse extends HttpResponse { +export interface GlossaryListGlossaryCategoriesHeadersDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -2987,7 +2942,7 @@ export interface GlossaryListGlossaryCategoriesQueryParamProperties { // @public (undocumented) export interface GlossaryListGlossaryTermHeaders { - get(options?: GlossaryListGlossaryTermHeadersParameters): Promise; + get(options?: GlossaryListGlossaryTermHeadersParameters): StreamableMethod; } // @public @@ -2999,11 +2954,11 @@ export interface GlossaryListGlossaryTermHeaders200Response extends HttpResponse } // @public -export interface GlossaryListGlossaryTermHeadersdefaultResponse extends HttpResponse { +export interface GlossaryListGlossaryTermHeadersDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3024,7 +2979,7 @@ export interface GlossaryListGlossaryTermHeadersQueryParamProperties { // @public (undocumented) export interface GlossaryListGlossaryTerms { - get(options?: GlossaryListGlossaryTermsParameters): Promise; + get(options?: GlossaryListGlossaryTermsParameters): StreamableMethod; } // @public @@ -3036,11 +2991,11 @@ export interface GlossaryListGlossaryTerms200Response extends HttpResponse { } // @public -export interface GlossaryListGlossaryTermsdefaultResponse extends HttpResponse { +export interface GlossaryListGlossaryTermsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3062,7 +3017,7 @@ export interface GlossaryListGlossaryTermsQueryParamProperties { // @public (undocumented) export interface GlossaryListRelatedCategories { - get(options?: GlossaryListRelatedCategoriesParameters): Promise; + get(options?: GlossaryListRelatedCategoriesParameters): StreamableMethod; } // @public @@ -3074,11 +3029,11 @@ export interface GlossaryListRelatedCategories200Response extends HttpResponse { } // @public -export interface GlossaryListRelatedCategoriesdefaultResponse extends HttpResponse { +export interface GlossaryListRelatedCategoriesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3099,7 +3054,7 @@ export interface GlossaryListRelatedCategoriesQueryParamProperties { // @public (undocumented) export interface GlossaryListRelatedTerms { - get(options?: GlossaryListRelatedTermsParameters): Promise; + get(options?: GlossaryListRelatedTermsParameters): StreamableMethod; } // @public @@ -3111,11 +3066,11 @@ export interface GlossaryListRelatedTerms200Response extends HttpResponse { } // @public -export interface GlossaryListRelatedTermsdefaultResponse extends HttpResponse { +export interface GlossaryListRelatedTermsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3136,7 +3091,7 @@ export interface GlossaryListRelatedTermsQueryParamProperties { // @public (undocumented) export interface GlossaryListTermsByGlossaryName { - get(options?: GlossaryListTermsByGlossaryNameParameters): Promise; + get(options?: GlossaryListTermsByGlossaryNameParameters): StreamableMethod; } // @public @@ -3148,11 +3103,11 @@ export interface GlossaryListTermsByGlossaryName200Response extends HttpResponse } // @public -export interface GlossaryListTermsByGlossaryNamedefaultResponse extends HttpResponse { +export interface GlossaryListTermsByGlossaryNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3173,7 +3128,7 @@ export interface GlossaryListTermsByGlossaryNameQueryParamProperties { // @public (undocumented) export interface GlossaryPartialUpdateGlossary { - put(options: GlossaryPartialUpdateGlossaryParameters): Promise; + put(options: GlossaryPartialUpdateGlossaryParameters): StreamableMethod; } // @public @@ -3191,7 +3146,7 @@ export interface GlossaryPartialUpdateGlossaryBodyParam { // @public (undocumented) export interface GlossaryPartialUpdateGlossaryCategory { - put(options: GlossaryPartialUpdateGlossaryCategoryParameters): Promise; + put(options: GlossaryPartialUpdateGlossaryCategoryParameters): StreamableMethod; } // @public @@ -3208,11 +3163,11 @@ export interface GlossaryPartialUpdateGlossaryCategoryBodyParam { } // @public -export interface GlossaryPartialUpdateGlossaryCategorydefaultResponse extends HttpResponse { +export interface GlossaryPartialUpdateGlossaryCategoryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3224,11 +3179,11 @@ export interface GlossaryPartialUpdateGlossaryCategoryMediaTypesParam { export type GlossaryPartialUpdateGlossaryCategoryParameters = GlossaryPartialUpdateGlossaryCategoryMediaTypesParam & GlossaryPartialUpdateGlossaryCategoryBodyParam & RequestParameters; // @public -export interface GlossaryPartialUpdateGlossarydefaultResponse extends HttpResponse { +export interface GlossaryPartialUpdateGlossaryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3252,7 +3207,7 @@ export interface GlossaryPartialUpdateGlossaryQueryParamProperties { // @public (undocumented) export interface GlossaryPartialUpdateGlossaryTerm { - put(options: GlossaryPartialUpdateGlossaryTermParameters): Promise; + put(options: GlossaryPartialUpdateGlossaryTermParameters): StreamableMethod; } // @public @@ -3269,11 +3224,11 @@ export interface GlossaryPartialUpdateGlossaryTermBodyParam { } // @public -export interface GlossaryPartialUpdateGlossaryTermdefaultResponse extends HttpResponse { +export interface GlossaryPartialUpdateGlossaryTermDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3297,8 +3252,6 @@ export interface GlossaryPartialUpdateGlossaryTermQueryParamProperties { // @public export interface GlossaryRemoveTermAssignmentFromEntities204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -3309,11 +3262,11 @@ export interface GlossaryRemoveTermAssignmentFromEntitiesBodyParam { } // @public -export interface GlossaryRemoveTermAssignmentFromEntitiesdefaultResponse extends HttpResponse { +export interface GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3351,11 +3304,11 @@ export interface GlossaryUpdateGlossaryCategoryBodyParam { } // @public -export interface GlossaryUpdateGlossaryCategorydefaultResponse extends HttpResponse { +export interface GlossaryUpdateGlossaryCategoryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3367,11 +3320,11 @@ export interface GlossaryUpdateGlossaryCategoryMediaTypesParam { export type GlossaryUpdateGlossaryCategoryParameters = GlossaryUpdateGlossaryCategoryMediaTypesParam & GlossaryUpdateGlossaryCategoryBodyParam & RequestParameters; // @public -export interface GlossaryUpdateGlossarydefaultResponse extends HttpResponse { +export interface GlossaryUpdateGlossaryDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3396,11 +3349,11 @@ export interface GlossaryUpdateGlossaryTermBodyParam { } // @public -export interface GlossaryUpdateGlossaryTermdefaultResponse extends HttpResponse { +export interface GlossaryUpdateGlossaryTermDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3428,7 +3381,7 @@ export interface ImportCSVOperationErrorOutput { errorMessage?: string; } -// @public (undocumented) +// @public export interface ImportCSVOperationOutput { createTime?: string; // (undocumented) @@ -3446,7 +3399,7 @@ export interface ImportCSVOperationPropertiesOutput { totalTermsDetected?: string; } -// @public (undocumented) +// @public export interface ImportInfoOutput { childObjectName?: string; importStatus?: "SUCCESS" | "FAILED"; @@ -3454,9 +3407,294 @@ export interface ImportInfoOutput { remarks?: string; } +// @public (undocumented) +export function isUnexpected(response: EntityCreateOrUpdate200Response | EntityCreateOrUpdateDefaultResponse): response is EntityCreateOrUpdateDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityListByGuids200Response | EntityListByGuidsDefaultResponse): response is EntityListByGuidsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityCreateOrUpdateEntities200Response | EntityCreateOrUpdateEntitiesDefaultResponse): response is EntityCreateOrUpdateEntitiesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityDeleteByGuids200Response | EntityDeleteByGuidsDefaultResponse): response is EntityDeleteByGuidsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityAddClassification204Response | EntityAddClassificationDefaultResponse): response is EntityAddClassificationDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityGetByGuid200Response | EntityGetByGuidDefaultResponse): response is EntityGetByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityPartialUpdateEntityAttributeByGuid200Response | EntityPartialUpdateEntityAttributeByGuidDefaultResponse): response is EntityPartialUpdateEntityAttributeByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityDeleteByGuid200Response | EntityDeleteByGuidDefaultResponse): response is EntityDeleteByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityGetClassification200Response | EntityGetClassificationDefaultResponse): response is EntityGetClassificationDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityDeleteClassification204Response | EntityDeleteClassificationDefaultResponse): response is EntityDeleteClassificationDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityGetClassifications200Response | EntityGetClassificationsDefaultResponse): response is EntityGetClassificationsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityAddClassifications204Response | EntityAddClassificationsDefaultResponse): response is EntityAddClassificationsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityUpdateClassifications204Response | EntityUpdateClassificationsDefaultResponse): response is EntityUpdateClassificationsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityGetByUniqueAttributes200Response | EntityGetByUniqueAttributesDefaultResponse): response is EntityGetByUniqueAttributesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityPartialUpdateEntityByUniqueAttributes200Response | EntityPartialUpdateEntityByUniqueAttributesDefaultResponse): response is EntityPartialUpdateEntityByUniqueAttributesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributeDefaultResponse): response is EntityDeleteByUniqueAttributeDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityDeleteClassificationByUniqueAttribute204Response | EntityDeleteClassificationByUniqueAttributeDefaultResponse): response is EntityDeleteClassificationByUniqueAttributeDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityAddClassificationsByUniqueAttribute204Response | EntityAddClassificationsByUniqueAttributeDefaultResponse): response is EntityAddClassificationsByUniqueAttributeDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityUpdateClassificationsByUniqueAttribute204Response | EntityUpdateClassificationsByUniqueAttributeDefaultResponse): response is EntityUpdateClassificationsByUniqueAttributeDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntitySetClassifications200Response | EntitySetClassificationsDefaultResponse): response is EntitySetClassificationsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityGetEntitiesByUniqueAttributes200Response | EntityGetEntitiesByUniqueAttributesDefaultResponse): response is EntityGetEntitiesByUniqueAttributesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityGetHeader200Response | EntityGetHeaderDefaultResponse): response is EntityGetHeaderDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: EntityGetSampleBusinessMetadataTemplate200Response | EntityGetSampleBusinessMetadataTemplate400Response): response is EntityGetSampleBusinessMetadataTemplate400Response; + +// @public (undocumented) +export function isUnexpected(response: EntityImportBusinessMetadata200Response | EntityImportBusinessMetadata400Response | EntityImportBusinessMetadata409Response): response is EntityImportBusinessMetadata400Response; + +// @public (undocumented) +export function isUnexpected(response: GlossaryListGlossaries200Response | GlossaryListGlossariesDefaultResponse): response is GlossaryListGlossariesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryCreateGlossary200Response | GlossaryCreateGlossaryDefaultResponse): response is GlossaryCreateGlossaryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryCreateGlossaryCategories200Response | GlossaryCreateGlossaryCategoriesDefaultResponse): response is GlossaryCreateGlossaryCategoriesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryCreateGlossaryCategory200Response | GlossaryCreateGlossaryCategoryDefaultResponse): response is GlossaryCreateGlossaryCategoryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryGetGlossaryCategory200Response | GlossaryGetGlossaryCategoryDefaultResponse): response is GlossaryGetGlossaryCategoryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryUpdateGlossaryCategory200Response | GlossaryUpdateGlossaryCategoryDefaultResponse): response is GlossaryUpdateGlossaryCategoryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryDeleteGlossaryCategory204Response | GlossaryDeleteGlossaryCategoryDefaultResponse): response is GlossaryDeleteGlossaryCategoryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryPartialUpdateGlossaryCategory200Response | GlossaryPartialUpdateGlossaryCategoryDefaultResponse): response is GlossaryPartialUpdateGlossaryCategoryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesDefaultResponse): response is GlossaryListRelatedCategoriesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryListCategoryTerms200Response | GlossaryListCategoryTermsDefaultResponse): response is GlossaryListCategoryTermsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryCreateGlossaryTerm200Response | GlossaryCreateGlossaryTermDefaultResponse): response is GlossaryCreateGlossaryTermDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryGetGlossaryTerm200Response | GlossaryGetGlossaryTermDefaultResponse): response is GlossaryGetGlossaryTermDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryUpdateGlossaryTerm200Response | GlossaryUpdateGlossaryTermDefaultResponse): response is GlossaryUpdateGlossaryTermDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryDeleteGlossaryTerm204Response | GlossaryDeleteGlossaryTermDefaultResponse): response is GlossaryDeleteGlossaryTermDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryPartialUpdateGlossaryTerm200Response | GlossaryPartialUpdateGlossaryTermDefaultResponse): response is GlossaryPartialUpdateGlossaryTermDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryCreateGlossaryTerms200Response | GlossaryCreateGlossaryTermsDefaultResponse): response is GlossaryCreateGlossaryTermsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryGetEntitiesAssignedWithTerm200Response | GlossaryGetEntitiesAssignedWithTermDefaultResponse): response is GlossaryGetEntitiesAssignedWithTermDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryAssignTermToEntities204Response | GlossaryAssignTermToEntitiesDefaultResponse): response is GlossaryAssignTermToEntitiesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryRemoveTermAssignmentFromEntities204Response | GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse): response is GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryDeleteTermAssignmentFromEntities204Response | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse): response is GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryListRelatedTerms200Response | GlossaryListRelatedTermsDefaultResponse): response is GlossaryListRelatedTermsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryGetGlossary200Response | GlossaryGetGlossaryDefaultResponse): response is GlossaryGetGlossaryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryUpdateGlossary200Response | GlossaryUpdateGlossaryDefaultResponse): response is GlossaryUpdateGlossaryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryDeleteGlossary204Response | GlossaryDeleteGlossaryDefaultResponse): response is GlossaryDeleteGlossaryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryListGlossaryCategories200Response | GlossaryListGlossaryCategoriesDefaultResponse): response is GlossaryListGlossaryCategoriesDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryListGlossaryCategoriesHeaders200Response | GlossaryListGlossaryCategoriesHeadersDefaultResponse): response is GlossaryListGlossaryCategoriesHeadersDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryGetDetailedGlossary200Response | GlossaryGetDetailedGlossaryDefaultResponse): response is GlossaryGetDetailedGlossaryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryPartialUpdateGlossary200Response | GlossaryPartialUpdateGlossaryDefaultResponse): response is GlossaryPartialUpdateGlossaryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryListGlossaryTerms200Response | GlossaryListGlossaryTermsDefaultResponse): response is GlossaryListGlossaryTermsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryListGlossaryTermHeaders200Response | GlossaryListGlossaryTermHeadersDefaultResponse): response is GlossaryListGlossaryTermHeadersDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryImportGlossaryTermsViaCsv202Response | GlossaryImportGlossaryTermsViaCsvDefaultResponse): response is GlossaryImportGlossaryTermsViaCsvDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryImportGlossaryTermsViaCsvByGlossaryName202Response | GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse): response is GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryGetImportCsvOperationStatus200Response | GlossaryGetImportCsvOperationStatusDefaultResponse): response is GlossaryGetImportCsvOperationStatusDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryExportGlossaryTermsAsCsv200Response | GlossaryExportGlossaryTermsAsCsvDefaultResponse): response is GlossaryExportGlossaryTermsAsCsvDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: GlossaryListTermsByGlossaryName200Response | GlossaryListTermsByGlossaryNameDefaultResponse): response is GlossaryListTermsByGlossaryNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: DiscoveryQuery200Response | DiscoveryQueryDefaultResponse): response is DiscoveryQueryDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: DiscoverySuggest200Response | DiscoverySuggestDefaultResponse): response is DiscoverySuggestDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: DiscoveryBrowse200Response | DiscoveryBrowseDefaultResponse): response is DiscoveryBrowseDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: DiscoveryAutoComplete200Response | DiscoveryAutoCompleteDefaultResponse): response is DiscoveryAutoCompleteDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: LineageGetLineageGraph200Response | LineageGetLineageGraphDefaultResponse): response is LineageGetLineageGraphDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: LineageNextPageLineage200Response | LineageNextPageLineageDefaultResponse): response is LineageNextPageLineageDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: LineageGetLineageByUniqueAttribute200Response | LineageGetLineageByUniqueAttribute400Response | LineageGetLineageByUniqueAttribute404Response): response is LineageGetLineageByUniqueAttribute400Response; + +// @public (undocumented) +export function isUnexpected(response: RelationshipCreate200Response | RelationshipCreateDefaultResponse): response is RelationshipCreateDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: RelationshipUpdate200Response | RelationshipUpdateDefaultResponse): response is RelationshipUpdateDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: RelationshipGet200Response | RelationshipGetDefaultResponse): response is RelationshipGetDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: RelationshipDelete204Response | RelationshipDeleteDefaultResponse): response is RelationshipDeleteDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetBusinessMetadataDefByGuid200Response | TypesGetBusinessMetadataDefByGuid404Response): response is TypesGetBusinessMetadataDefByGuid404Response; + +// @public (undocumented) +export function isUnexpected(response: TypesGetBusinessMetadataDefByName200Response | TypesGetBusinessMetadataDefByName404Response): response is TypesGetBusinessMetadataDefByName404Response; + +// @public (undocumented) +export function isUnexpected(response: TypesGetClassificationDefByGuid200Response | TypesGetClassificationDefByGuidDefaultResponse): response is TypesGetClassificationDefByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetClassificationDefByName200Response | TypesGetClassificationDefByNameDefaultResponse): response is TypesGetClassificationDefByNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetEntityDefinitionByGuid200Response | TypesGetEntityDefinitionByGuidDefaultResponse): response is TypesGetEntityDefinitionByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetEntityDefinitionByName200Response | TypesGetEntityDefinitionByNameDefaultResponse): response is TypesGetEntityDefinitionByNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetEnumDefByGuid200Response | TypesGetEnumDefByGuidDefaultResponse): response is TypesGetEnumDefByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetEnumDefByName200Response | TypesGetEnumDefByNameDefaultResponse): response is TypesGetEnumDefByNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetRelationshipDefByGuid200Response | TypesGetRelationshipDefByGuidDefaultResponse): response is TypesGetRelationshipDefByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetRelationshipDefByName200Response | TypesGetRelationshipDefByNameDefaultResponse): response is TypesGetRelationshipDefByNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetStructDefByGuid200Response | TypesGetStructDefByGuidDefaultResponse): response is TypesGetStructDefByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetStructDefByName200Response | TypesGetStructDefByNameDefaultResponse): response is TypesGetStructDefByNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetTypeDefinitionByGuid200Response | TypesGetTypeDefinitionByGuidDefaultResponse): response is TypesGetTypeDefinitionByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetTypeDefinitionByName200Response | TypesGetTypeDefinitionByNameDefaultResponse): response is TypesGetTypeDefinitionByNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesDeleteTypeByName204Response | TypesDeleteTypeByNameDefaultResponse): response is TypesDeleteTypeByNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetAllTypeDefinitions200Response | TypesGetAllTypeDefinitionsDefaultResponse): response is TypesGetAllTypeDefinitionsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesCreateTypeDefinitions200Response | TypesCreateTypeDefinitionsDefaultResponse): response is TypesCreateTypeDefinitionsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesUpdateAtlasTypeDefinitions200Response | TypesUpdateAtlasTypeDefinitionsDefaultResponse): response is TypesUpdateAtlasTypeDefinitionsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesDeleteTypeDefinitions204Response | TypesDeleteTypeDefinitionsDefaultResponse): response is TypesDeleteTypeDefinitionsDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesListTypeDefinitionHeaders200Response | TypesListTypeDefinitionHeadersDefaultResponse): response is TypesListTypeDefinitionHeadersDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetTermTemplateDefByGuid200Response | TypesGetTermTemplateDefByGuidDefaultResponse): response is TypesGetTermTemplateDefByGuidDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: TypesGetTermTemplateDefByName200Response | TypesGetTermTemplateDefByNameDefaultResponse): response is TypesGetTermTemplateDefByNameDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: CollectionCreateOrUpdate200Response | CollectionCreateOrUpdateDefaultResponse): response is CollectionCreateOrUpdateDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: CollectionCreateOrUpdateBulk200Response | CollectionCreateOrUpdateBulkDefaultResponse): response is CollectionCreateOrUpdateBulkDefaultResponse; + +// @public (undocumented) +export function isUnexpected(response: CollectionMoveEntitiesToCollection200Response | CollectionMoveEntitiesToCollectionDefaultResponse): response is CollectionMoveEntitiesToCollectionDefaultResponse; + // @public (undocumented) export interface LineageGetLineageByUniqueAttribute { - get(options: LineageGetLineageByUniqueAttributeParameters): Promise; + get(options: LineageGetLineageByUniqueAttributeParameters): StreamableMethod; } // @public @@ -3469,16 +3707,12 @@ export interface LineageGetLineageByUniqueAttribute200Response extends HttpRespo // @public export interface LineageGetLineageByUniqueAttribute400Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "400"; } // @public export interface LineageGetLineageByUniqueAttribute404Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "404"; } @@ -3503,7 +3737,7 @@ export interface LineageGetLineageByUniqueAttributeQueryParamProperties { // @public (undocumented) export interface LineageGetLineageGraph { - get(options: LineageGetLineageGraphParameters): Promise; + get(options: LineageGetLineageGraphParameters): StreamableMethod; } // @public @@ -3515,11 +3749,11 @@ export interface LineageGetLineageGraph200Response extends HttpResponse { } // @public -export interface LineageGetLineageGraphdefaultResponse extends HttpResponse { +export interface LineageGetLineageGraphDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3542,7 +3776,7 @@ export interface LineageGetLineageGraphQueryParamProperties { // @public (undocumented) export interface LineageNextPageLineage { - get(options: LineageNextPageLineageParameters): Promise; + get(options: LineageNextPageLineageParameters): StreamableMethod; } // @public @@ -3554,11 +3788,11 @@ export interface LineageNextPageLineage200Response extends HttpResponse { } // @public -export interface LineageNextPageLineagedefaultResponse extends HttpResponse { +export interface LineageNextPageLineageDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3578,7 +3812,7 @@ export interface LineageNextPageLineageQueryParamProperties { offset?: number; } -// @public (undocumented) +// @public export interface LineageRelationOutput { fromEntityId?: string; relationshipId?: string; @@ -3590,7 +3824,7 @@ export interface MoveEntitiesRequest { entityGuids?: Array; } -// @public (undocumented) +// @public export interface NumberFormat { availableLocales?: Array; currency?: string; @@ -3608,7 +3842,7 @@ export interface NumberFormat { roundingMode?: "UP" | "DOWN" | "CEILING" | "FLOOR" | "HALF_UP" | "HALF_DOWN" | "HALF_EVEN" | "UNNECESSARY"; } -// @public (undocumented) +// @public export interface NumberFormatOutput { availableLocales?: Array; currency?: string; @@ -3626,14 +3860,14 @@ export interface NumberFormatOutput { roundingMode?: "UP" | "DOWN" | "CEILING" | "FLOOR" | "HALF_UP" | "HALF_DOWN" | "HALF_EVEN" | "UNNECESSARY"; } -// @public (undocumented) +// @public export interface ParentRelationOutput { childEntityId?: string; parentEntityId?: string; relationshipId?: string; } -// @public (undocumented) +// @public export interface PListOutput { list?: Array>; pageSize?: number; @@ -3648,10 +3882,15 @@ export type PurviewCatalogClient = Client & { path: Routes; }; +// @public +export interface PurviewCatalogClientOptions extends ClientOptions { + apiVersion?: string; +} + // @public (undocumented) export interface RelationshipCreate { - post(options: RelationshipCreateParameters): Promise; - put(options: RelationshipUpdateParameters): Promise; + post(options: RelationshipCreateParameters): StreamableMethod; + put(options: RelationshipUpdateParameters): StreamableMethod; } // @public @@ -3668,11 +3907,11 @@ export interface RelationshipCreateBodyParam { } // @public -export interface RelationshipCreatedefaultResponse extends HttpResponse { +export interface RelationshipCreateDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3685,18 +3924,16 @@ export type RelationshipCreateParameters = RelationshipCreateMediaTypesParam & R // @public export interface RelationshipDelete204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } // @public -export interface RelationshipDeletedefaultResponse extends HttpResponse { +export interface RelationshipDeleteDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3704,8 +3941,8 @@ export type RelationshipDeleteParameters = RequestParameters; // @public (undocumented) export interface RelationshipGet { - delete(options?: RelationshipDeleteParameters): Promise; - get(options?: RelationshipGetParameters): Promise; + delete(options?: RelationshipDeleteParameters): StreamableMethod; + get(options?: RelationshipGetParameters): StreamableMethod; } // @public @@ -3717,11 +3954,11 @@ export interface RelationshipGet200Response extends HttpResponse { } // @public -export interface RelationshipGetdefaultResponse extends HttpResponse { +export interface RelationshipGetDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3752,11 +3989,11 @@ export interface RelationshipUpdateBodyParam { } // @public -export interface RelationshipUpdatedefaultResponse extends HttpResponse { +export interface RelationshipUpdateDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -3767,13 +4004,13 @@ export interface RelationshipUpdateMediaTypesParam { // @public (undocumented) export type RelationshipUpdateParameters = RelationshipUpdateMediaTypesParam & RelationshipUpdateBodyParam & RequestParameters; -// @public (undocumented) +// @public export interface ResourceLink { displayName?: string; url?: string; } -// @public (undocumented) +// @public export interface ResourceLinkOutput { displayName?: string; url?: string; @@ -3856,20 +4093,20 @@ export interface Routes { (path: "/collections/{collection}/entity/moveHere", collection: string): CollectionMoveEntitiesToCollection; } -// @public (undocumented) +// @public export interface SearchFacetItem { count?: number; facet?: string; sort?: Record; } -// @public (undocumented) +// @public export interface SearchFacetItemValueOutput { count?: number; value?: string; } -// @public (undocumented) +// @public export interface SearchFacetResultValueOutput { // (undocumented) assetType?: Array; @@ -3887,7 +4124,7 @@ export interface SearchFacetResultValueOutput { term?: Array; } -// @public (undocumented) +// @public export interface SearchHighlightsOutput { // (undocumented) description?: Array; @@ -3901,7 +4138,7 @@ export interface SearchHighlightsOutput { qualifiedName?: Array; } -// @public (undocumented) +// @public export interface SearchRequest { // (undocumented) facets?: Array; @@ -3920,7 +4157,7 @@ export interface SearchRequestTaxonomySetting { facet?: SearchFacetItem; } -// @public (undocumented) +// @public export interface SearchResultOutput { "@search.count"?: number; "@search.facets"?: SearchFacetResultValueOutput; @@ -3928,7 +4165,7 @@ export interface SearchResultOutput { value?: Array; } -// @public (undocumented) +// @public export interface SearchResultValueOutput { "@search.highlights"?: SearchHighlightsOutput; "@search.score"?: number; @@ -3946,20 +4183,42 @@ export interface SearchResultValueOutput { term?: Array; } -// @public (undocumented) +// @public +export interface SimplePollerLike, TResult> { + getOperationState(): TState; + getResult(): TResult | undefined; + isDone(): boolean; + // @deprecated + isStopped(): boolean; + onProgress(callback: (state: TState) => void): CancelOnProgress; + poll(options?: { + abortSignal?: AbortSignalLike; + }): Promise; + pollUntilDone(pollOptions?: { + abortSignal?: AbortSignalLike; + }): Promise; + serialize(): Promise; + // @deprecated + stopPolling(): void; + submitted(): Promise; + // @deprecated + toString(): string; +} + +// @public export interface SuggestRequest { filter?: Record; keywords?: string; limit?: number; } -// @public (undocumented) +// @public export interface SuggestResultOutput { // (undocumented) value?: Array; } -// @public (undocumented) +// @public export interface SuggestResultValueOutput { "@search.score"?: number; "@search.text"?: string; @@ -3976,36 +4235,36 @@ export interface SuggestResultValueOutput { term?: Array; } -// @public (undocumented) +// @public export interface TermSearchResultValueOutput { glossaryName?: string; guid?: string; name?: string; } -// @public (undocumented) +// @public export interface TermTemplateDef extends AtlasStructDef { } -// @public (undocumented) +// @public export interface TermTemplateDefOutput extends AtlasStructDefOutput { } -// @public (undocumented) +// @public export interface TimeBoundary { endTime?: string; startTime?: string; timeZone?: string; } -// @public (undocumented) +// @public export interface TimeBoundaryOutput { endTime?: string; startTime?: string; timeZone?: string; } -// @public (undocumented) +// @public export interface TimeZone { availableIds?: Array; default?: TimeZone; @@ -4015,7 +4274,7 @@ export interface TimeZone { rawOffset?: number; } -// @public (undocumented) +// @public export interface TimeZoneOutput { availableIds?: Array; default?: TimeZoneOutput; @@ -4039,11 +4298,11 @@ export interface TypesCreateTypeDefinitionsBodyParam { } // @public -export interface TypesCreateTypeDefinitionsdefaultResponse extends HttpResponse { +export interface TypesCreateTypeDefinitionsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4056,18 +4315,16 @@ export type TypesCreateTypeDefinitionsParameters = TypesCreateTypeDefinitionsMed // @public export interface TypesDeleteTypeByName204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } // @public -export interface TypesDeleteTypeByNamedefaultResponse extends HttpResponse { +export interface TypesDeleteTypeByNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4075,8 +4332,6 @@ export type TypesDeleteTypeByNameParameters = RequestParameters; // @public export interface TypesDeleteTypeDefinitions204Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "204"; } @@ -4087,11 +4342,11 @@ export interface TypesDeleteTypeDefinitionsBodyParam { } // @public -export interface TypesDeleteTypeDefinitionsdefaultResponse extends HttpResponse { +export interface TypesDeleteTypeDefinitionsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4104,10 +4359,10 @@ export type TypesDeleteTypeDefinitionsParameters = TypesDeleteTypeDefinitionsMed // @public (undocumented) export interface TypesGetAllTypeDefinitions { - delete(options: TypesDeleteTypeDefinitionsParameters): Promise; - get(options?: TypesGetAllTypeDefinitionsParameters): Promise; - post(options: TypesCreateTypeDefinitionsParameters): Promise; - put(options: TypesUpdateAtlasTypeDefinitionsParameters): Promise; + delete(options: TypesDeleteTypeDefinitionsParameters): StreamableMethod; + get(options?: TypesGetAllTypeDefinitionsParameters): StreamableMethod; + post(options: TypesCreateTypeDefinitionsParameters): StreamableMethod; + put(options: TypesUpdateAtlasTypeDefinitionsParameters): StreamableMethod; } // @public @@ -4119,11 +4374,11 @@ export interface TypesGetAllTypeDefinitions200Response extends HttpResponse { } // @public -export interface TypesGetAllTypeDefinitionsdefaultResponse extends HttpResponse { +export interface TypesGetAllTypeDefinitionsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4143,7 +4398,7 @@ export interface TypesGetAllTypeDefinitionsQueryParamProperties { // @public (undocumented) export interface TypesGetBusinessMetadataDefByGuid { - get(options?: TypesGetBusinessMetadataDefByGuidParameters): Promise; + get(options?: TypesGetBusinessMetadataDefByGuidParameters): StreamableMethod; } // @public @@ -4156,8 +4411,6 @@ export interface TypesGetBusinessMetadataDefByGuid200Response extends HttpRespon // @public export interface TypesGetBusinessMetadataDefByGuid404Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "404"; } @@ -4167,7 +4420,7 @@ export type TypesGetBusinessMetadataDefByGuidParameters = RequestParameters; // @public (undocumented) export interface TypesGetBusinessMetadataDefByName { - get(options?: TypesGetBusinessMetadataDefByNameParameters): Promise; + get(options?: TypesGetBusinessMetadataDefByNameParameters): StreamableMethod; } // @public @@ -4180,8 +4433,6 @@ export interface TypesGetBusinessMetadataDefByName200Response extends HttpRespon // @public export interface TypesGetBusinessMetadataDefByName404Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) status: "404"; } @@ -4191,7 +4442,7 @@ export type TypesGetBusinessMetadataDefByNameParameters = RequestParameters; // @public (undocumented) export interface TypesGetClassificationDefByGuid { - get(options?: TypesGetClassificationDefByGuidParameters): Promise; + get(options?: TypesGetClassificationDefByGuidParameters): StreamableMethod; } // @public @@ -4203,11 +4454,11 @@ export interface TypesGetClassificationDefByGuid200Response extends HttpResponse } // @public -export interface TypesGetClassificationDefByGuiddefaultResponse extends HttpResponse { +export interface TypesGetClassificationDefByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4215,7 +4466,7 @@ export type TypesGetClassificationDefByGuidParameters = RequestParameters; // @public (undocumented) export interface TypesGetClassificationDefByName { - get(options?: TypesGetClassificationDefByNameParameters): Promise; + get(options?: TypesGetClassificationDefByNameParameters): StreamableMethod; } // @public @@ -4227,11 +4478,11 @@ export interface TypesGetClassificationDefByName200Response extends HttpResponse } // @public -export interface TypesGetClassificationDefByNamedefaultResponse extends HttpResponse { +export interface TypesGetClassificationDefByNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4239,7 +4490,7 @@ export type TypesGetClassificationDefByNameParameters = RequestParameters; // @public (undocumented) export interface TypesGetEntityDefinitionByGuid { - get(options?: TypesGetEntityDefinitionByGuidParameters): Promise; + get(options?: TypesGetEntityDefinitionByGuidParameters): StreamableMethod; } // @public @@ -4251,11 +4502,11 @@ export interface TypesGetEntityDefinitionByGuid200Response extends HttpResponse } // @public -export interface TypesGetEntityDefinitionByGuiddefaultResponse extends HttpResponse { +export interface TypesGetEntityDefinitionByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4263,7 +4514,7 @@ export type TypesGetEntityDefinitionByGuidParameters = RequestParameters; // @public (undocumented) export interface TypesGetEntityDefinitionByName { - get(options?: TypesGetEntityDefinitionByNameParameters): Promise; + get(options?: TypesGetEntityDefinitionByNameParameters): StreamableMethod; } // @public @@ -4275,11 +4526,11 @@ export interface TypesGetEntityDefinitionByName200Response extends HttpResponse } // @public -export interface TypesGetEntityDefinitionByNamedefaultResponse extends HttpResponse { +export interface TypesGetEntityDefinitionByNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4287,7 +4538,7 @@ export type TypesGetEntityDefinitionByNameParameters = RequestParameters; // @public (undocumented) export interface TypesGetEnumDefByGuid { - get(options?: TypesGetEnumDefByGuidParameters): Promise; + get(options?: TypesGetEnumDefByGuidParameters): StreamableMethod; } // @public @@ -4299,11 +4550,11 @@ export interface TypesGetEnumDefByGuid200Response extends HttpResponse { } // @public -export interface TypesGetEnumDefByGuiddefaultResponse extends HttpResponse { +export interface TypesGetEnumDefByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4311,7 +4562,7 @@ export type TypesGetEnumDefByGuidParameters = RequestParameters; // @public (undocumented) export interface TypesGetEnumDefByName { - get(options?: TypesGetEnumDefByNameParameters): Promise; + get(options?: TypesGetEnumDefByNameParameters): StreamableMethod; } // @public @@ -4323,11 +4574,11 @@ export interface TypesGetEnumDefByName200Response extends HttpResponse { } // @public -export interface TypesGetEnumDefByNamedefaultResponse extends HttpResponse { +export interface TypesGetEnumDefByNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4335,7 +4586,7 @@ export type TypesGetEnumDefByNameParameters = RequestParameters; // @public (undocumented) export interface TypesGetRelationshipDefByGuid { - get(options?: TypesGetRelationshipDefByGuidParameters): Promise; + get(options?: TypesGetRelationshipDefByGuidParameters): StreamableMethod; } // @public @@ -4347,11 +4598,11 @@ export interface TypesGetRelationshipDefByGuid200Response extends HttpResponse { } // @public -export interface TypesGetRelationshipDefByGuiddefaultResponse extends HttpResponse { +export interface TypesGetRelationshipDefByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4359,7 +4610,7 @@ export type TypesGetRelationshipDefByGuidParameters = RequestParameters; // @public (undocumented) export interface TypesGetRelationshipDefByName { - get(options?: TypesGetRelationshipDefByNameParameters): Promise; + get(options?: TypesGetRelationshipDefByNameParameters): StreamableMethod; } // @public @@ -4371,11 +4622,11 @@ export interface TypesGetRelationshipDefByName200Response extends HttpResponse { } // @public -export interface TypesGetRelationshipDefByNamedefaultResponse extends HttpResponse { +export interface TypesGetRelationshipDefByNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4383,7 +4634,7 @@ export type TypesGetRelationshipDefByNameParameters = RequestParameters; // @public (undocumented) export interface TypesGetStructDefByGuid { - get(options?: TypesGetStructDefByGuidParameters): Promise; + get(options?: TypesGetStructDefByGuidParameters): StreamableMethod; } // @public @@ -4395,11 +4646,11 @@ export interface TypesGetStructDefByGuid200Response extends HttpResponse { } // @public -export interface TypesGetStructDefByGuiddefaultResponse extends HttpResponse { +export interface TypesGetStructDefByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4407,7 +4658,7 @@ export type TypesGetStructDefByGuidParameters = RequestParameters; // @public (undocumented) export interface TypesGetStructDefByName { - get(options?: TypesGetStructDefByNameParameters): Promise; + get(options?: TypesGetStructDefByNameParameters): StreamableMethod; } // @public @@ -4419,11 +4670,11 @@ export interface TypesGetStructDefByName200Response extends HttpResponse { } // @public -export interface TypesGetStructDefByNamedefaultResponse extends HttpResponse { +export interface TypesGetStructDefByNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4431,7 +4682,7 @@ export type TypesGetStructDefByNameParameters = RequestParameters; // @public (undocumented) export interface TypesGetTermTemplateDefByGuid { - get(options?: TypesGetTermTemplateDefByGuidParameters): Promise; + get(options?: TypesGetTermTemplateDefByGuidParameters): StreamableMethod; } // @public @@ -4443,11 +4694,11 @@ export interface TypesGetTermTemplateDefByGuid200Response extends HttpResponse { } // @public -export interface TypesGetTermTemplateDefByGuiddefaultResponse extends HttpResponse { +export interface TypesGetTermTemplateDefByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4455,7 +4706,7 @@ export type TypesGetTermTemplateDefByGuidParameters = RequestParameters; // @public (undocumented) export interface TypesGetTermTemplateDefByName { - get(options?: TypesGetTermTemplateDefByNameParameters): Promise; + get(options?: TypesGetTermTemplateDefByNameParameters): StreamableMethod; } // @public @@ -4467,11 +4718,11 @@ export interface TypesGetTermTemplateDefByName200Response extends HttpResponse { } // @public -export interface TypesGetTermTemplateDefByNamedefaultResponse extends HttpResponse { +export interface TypesGetTermTemplateDefByNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4479,7 +4730,7 @@ export type TypesGetTermTemplateDefByNameParameters = RequestParameters; // @public (undocumented) export interface TypesGetTypeDefinitionByGuid { - get(options?: TypesGetTypeDefinitionByGuidParameters): Promise; + get(options?: TypesGetTypeDefinitionByGuidParameters): StreamableMethod; } // @public @@ -4491,11 +4742,11 @@ export interface TypesGetTypeDefinitionByGuid200Response extends HttpResponse { } // @public -export interface TypesGetTypeDefinitionByGuiddefaultResponse extends HttpResponse { +export interface TypesGetTypeDefinitionByGuidDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4503,8 +4754,8 @@ export type TypesGetTypeDefinitionByGuidParameters = RequestParameters; // @public (undocumented) export interface TypesGetTypeDefinitionByName { - delete(options?: TypesDeleteTypeByNameParameters): Promise; - get(options?: TypesGetTypeDefinitionByNameParameters): Promise; + delete(options?: TypesDeleteTypeByNameParameters): StreamableMethod; + get(options?: TypesGetTypeDefinitionByNameParameters): StreamableMethod; } // @public @@ -4516,11 +4767,11 @@ export interface TypesGetTypeDefinitionByName200Response extends HttpResponse { } // @public -export interface TypesGetTypeDefinitionByNamedefaultResponse extends HttpResponse { +export interface TypesGetTypeDefinitionByNameDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4528,7 +4779,7 @@ export type TypesGetTypeDefinitionByNameParameters = RequestParameters; // @public (undocumented) export interface TypesListTypeDefinitionHeaders { - get(options?: TypesListTypeDefinitionHeadersParameters): Promise; + get(options?: TypesListTypeDefinitionHeadersParameters): StreamableMethod; } // @public @@ -4540,11 +4791,11 @@ export interface TypesListTypeDefinitionHeaders200Response extends HttpResponse } // @public -export interface TypesListTypeDefinitionHeadersdefaultResponse extends HttpResponse { +export interface TypesListTypeDefinitionHeadersDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) @@ -4576,11 +4827,11 @@ export interface TypesUpdateAtlasTypeDefinitionsBodyParam { } // @public -export interface TypesUpdateAtlasTypeDefinitionsdefaultResponse extends HttpResponse { +export interface TypesUpdateAtlasTypeDefinitionsDefaultResponse extends HttpResponse { // (undocumented) body: ErrorResponseOutput; // (undocumented) - status: "500"; + status: string; } // @public (undocumented) diff --git a/sdk/purview/purview-catalog-rest/samples-dev/typedefs.ts b/sdk/purview/purview-catalog-rest/samples-dev/typedefs.ts index 95a14c88160c..8621f30be037 100644 --- a/sdk/purview/purview-catalog-rest/samples-dev/typedefs.ts +++ b/sdk/purview/purview-catalog-rest/samples-dev/typedefs.ts @@ -8,7 +8,7 @@ * @azsdk-weight 40 */ -import PurviewCatalog from "@azure-rest/purview-catalog"; +import PurviewCatalog, { isUnexpected } from "@azure-rest/purview-catalog"; import { DefaultAzureCredential } from "@azure/identity"; import "dotenv/config"; @@ -20,7 +20,7 @@ async function main(): Promise { const dataSources = await client.path("/atlas/v2/types/typedefs").get(); - if (dataSources.status !== "200") { + if (isUnexpected(dataSources)) { throw dataSources; } diff --git a/sdk/purview/purview-catalog-rest/samples/v1-beta/javascript/package.json b/sdk/purview/purview-catalog-rest/samples/v1-beta/javascript/package.json index 89fdc8ca1184..0834cdb54291 100644 --- a/sdk/purview/purview-catalog-rest/samples/v1-beta/javascript/package.json +++ b/sdk/purview/purview-catalog-rest/samples/v1-beta/javascript/package.json @@ -28,6 +28,6 @@ "dependencies": { "@azure-rest/purview-catalog": "next", "dotenv": "latest", - "@azure/identity": "^4.2.1" + "@azure/identity": "^4.0.1" } } diff --git a/sdk/purview/purview-catalog-rest/samples/v1-beta/javascript/typedefs.js b/sdk/purview/purview-catalog-rest/samples/v1-beta/javascript/typedefs.js index 30875dedc8a5..f780e27c9d59 100644 --- a/sdk/purview/purview-catalog-rest/samples/v1-beta/javascript/typedefs.js +++ b/sdk/purview/purview-catalog-rest/samples/v1-beta/javascript/typedefs.js @@ -7,7 +7,8 @@ * @summary gets a list of typedefs for entities */ -const PurviewCatalog = require("@azure-rest/purview-catalog").default; +const PurviewCatalog = require("@azure-rest/purview-catalog").default, + { isUnexpected } = require("@azure-rest/purview-catalog"); const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); @@ -19,12 +20,12 @@ async function main() { const dataSources = await client.path("/atlas/v2/types/typedefs").get(); - if (dataSources.status !== "200") { + if (isUnexpected(dataSources)) { throw dataSources; } if (!dataSources.body.entityDefs) { - throw new Error("entityDefs is undefined"); + throw new Error("entityDefs is not defined"); } console.log(dataSources.body.entityDefs.map((ds) => ds.name).join("\n")); diff --git a/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/package.json b/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/package.json index 99b6f3008867..4a4c5afca1f8 100644 --- a/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/package.json +++ b/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/package.json @@ -32,7 +32,7 @@ "dependencies": { "@azure-rest/purview-catalog": "next", "dotenv": "latest", - "@azure/identity": "^4.2.1" + "@azure/identity": "^4.0.1" }, "devDependencies": { "@types/node": "^18.0.0", diff --git a/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/src/typedefs.ts b/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/src/typedefs.ts index d5380758127c..43c033f70307 100644 --- a/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/src/typedefs.ts +++ b/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/src/typedefs.ts @@ -7,7 +7,7 @@ * @summary gets a list of typedefs for entities */ -import PurviewCatalog from "@azure-rest/purview-catalog"; +import PurviewCatalog, { isUnexpected } from "@azure-rest/purview-catalog"; import { DefaultAzureCredential } from "@azure/identity"; import dotenv from "dotenv"; @@ -21,12 +21,12 @@ async function main() { const dataSources = await client.path("/atlas/v2/types/typedefs").get(); - if (dataSources.status !== "200") { + if (isUnexpected(dataSources)) { throw dataSources; } if (!dataSources.body.entityDefs) { - throw new Error("entityDefs is undefined"); + throw new Error("entityDefs is not defined"); } console.log(dataSources.body.entityDefs.map((ds) => ds.name).join("\n")); diff --git a/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/tsconfig.json b/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/tsconfig.json index ad5ff9a19d36..984eed535aa8 100644 --- a/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/tsconfig.json +++ b/sdk/purview/purview-catalog-rest/samples/v1-beta/typescript/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2018", + "target": "ES2020", "module": "commonjs", "moduleResolution": "node", "resolveJsonModule": true, diff --git a/sdk/purview/purview-catalog-rest/src/clientDefinitions.ts b/sdk/purview/purview-catalog-rest/src/clientDefinitions.ts index a0a5aac0fe06..04aad136b02f 100644 --- a/sdk/purview/purview-catalog-rest/src/clientDefinitions.ts +++ b/sdk/purview/purview-catalog-rest/src/clientDefinitions.ts @@ -110,49 +110,49 @@ import type { } from "./parameters.js"; import type { EntityCreateOrUpdate200Response, - EntityCreateOrUpdatedefaultResponse, + EntityCreateOrUpdateDefaultResponse, EntityListByGuids200Response, - EntityListByGuidsdefaultResponse, + EntityListByGuidsDefaultResponse, EntityCreateOrUpdateEntities200Response, - EntityCreateOrUpdateEntitiesdefaultResponse, + EntityCreateOrUpdateEntitiesDefaultResponse, EntityDeleteByGuids200Response, - EntityDeleteByGuidsdefaultResponse, + EntityDeleteByGuidsDefaultResponse, EntityAddClassification204Response, - EntityAddClassificationdefaultResponse, + EntityAddClassificationDefaultResponse, EntityGetByGuid200Response, - EntityGetByGuiddefaultResponse, + EntityGetByGuidDefaultResponse, EntityPartialUpdateEntityAttributeByGuid200Response, - EntityPartialUpdateEntityAttributeByGuiddefaultResponse, + EntityPartialUpdateEntityAttributeByGuidDefaultResponse, EntityDeleteByGuid200Response, - EntityDeleteByGuiddefaultResponse, + EntityDeleteByGuidDefaultResponse, EntityGetClassification200Response, - EntityGetClassificationdefaultResponse, + EntityGetClassificationDefaultResponse, EntityDeleteClassification204Response, - EntityDeleteClassificationdefaultResponse, + EntityDeleteClassificationDefaultResponse, EntityGetClassifications200Response, - EntityGetClassificationsdefaultResponse, + EntityGetClassificationsDefaultResponse, EntityAddClassifications204Response, - EntityAddClassificationsdefaultResponse, + EntityAddClassificationsDefaultResponse, EntityUpdateClassifications204Response, - EntityUpdateClassificationsdefaultResponse, + EntityUpdateClassificationsDefaultResponse, EntityGetByUniqueAttributes200Response, - EntityGetByUniqueAttributesdefaultResponse, + EntityGetByUniqueAttributesDefaultResponse, EntityPartialUpdateEntityByUniqueAttributes200Response, - EntityPartialUpdateEntityByUniqueAttributesdefaultResponse, + EntityPartialUpdateEntityByUniqueAttributesDefaultResponse, EntityDeleteByUniqueAttribute200Response, - EntityDeleteByUniqueAttributedefaultResponse, + EntityDeleteByUniqueAttributeDefaultResponse, EntityDeleteClassificationByUniqueAttribute204Response, - EntityDeleteClassificationByUniqueAttributedefaultResponse, + EntityDeleteClassificationByUniqueAttributeDefaultResponse, EntityAddClassificationsByUniqueAttribute204Response, - EntityAddClassificationsByUniqueAttributedefaultResponse, + EntityAddClassificationsByUniqueAttributeDefaultResponse, EntityUpdateClassificationsByUniqueAttribute204Response, - EntityUpdateClassificationsByUniqueAttributedefaultResponse, + EntityUpdateClassificationsByUniqueAttributeDefaultResponse, EntitySetClassifications200Response, - EntitySetClassificationsdefaultResponse, + EntitySetClassificationsDefaultResponse, EntityGetEntitiesByUniqueAttributes200Response, - EntityGetEntitiesByUniqueAttributesdefaultResponse, + EntityGetEntitiesByUniqueAttributesDefaultResponse, EntityGetHeader200Response, - EntityGetHeaderdefaultResponse, + EntityGetHeaderDefaultResponse, EntityDeleteBusinessMetadata204Response, EntityAddOrUpdateBusinessMetadata204Response, EntityDeleteBusinessMetadataAttributes204Response, @@ -169,150 +169,150 @@ import type { EntitySetLabelsByUniqueAttribute204Response, EntityAddLabelsByUniqueAttribute204Response, GlossaryListGlossaries200Response, - GlossaryListGlossariesdefaultResponse, + GlossaryListGlossariesDefaultResponse, GlossaryCreateGlossary200Response, - GlossaryCreateGlossarydefaultResponse, + GlossaryCreateGlossaryDefaultResponse, GlossaryCreateGlossaryCategories200Response, - GlossaryCreateGlossaryCategoriesdefaultResponse, + GlossaryCreateGlossaryCategoriesDefaultResponse, GlossaryCreateGlossaryCategory200Response, - GlossaryCreateGlossaryCategorydefaultResponse, + GlossaryCreateGlossaryCategoryDefaultResponse, GlossaryGetGlossaryCategory200Response, - GlossaryGetGlossaryCategorydefaultResponse, + GlossaryGetGlossaryCategoryDefaultResponse, GlossaryUpdateGlossaryCategory200Response, - GlossaryUpdateGlossaryCategorydefaultResponse, + GlossaryUpdateGlossaryCategoryDefaultResponse, GlossaryDeleteGlossaryCategory204Response, - GlossaryDeleteGlossaryCategorydefaultResponse, + GlossaryDeleteGlossaryCategoryDefaultResponse, GlossaryPartialUpdateGlossaryCategory200Response, - GlossaryPartialUpdateGlossaryCategorydefaultResponse, + GlossaryPartialUpdateGlossaryCategoryDefaultResponse, GlossaryListRelatedCategories200Response, - GlossaryListRelatedCategoriesdefaultResponse, + GlossaryListRelatedCategoriesDefaultResponse, GlossaryListCategoryTerms200Response, - GlossaryListCategoryTermsdefaultResponse, + GlossaryListCategoryTermsDefaultResponse, GlossaryCreateGlossaryTerm200Response, - GlossaryCreateGlossaryTermdefaultResponse, + GlossaryCreateGlossaryTermDefaultResponse, GlossaryGetGlossaryTerm200Response, - GlossaryGetGlossaryTermdefaultResponse, + GlossaryGetGlossaryTermDefaultResponse, GlossaryUpdateGlossaryTerm200Response, - GlossaryUpdateGlossaryTermdefaultResponse, + GlossaryUpdateGlossaryTermDefaultResponse, GlossaryDeleteGlossaryTerm204Response, - GlossaryDeleteGlossaryTermdefaultResponse, + GlossaryDeleteGlossaryTermDefaultResponse, GlossaryPartialUpdateGlossaryTerm200Response, - GlossaryPartialUpdateGlossaryTermdefaultResponse, + GlossaryPartialUpdateGlossaryTermDefaultResponse, GlossaryCreateGlossaryTerms200Response, - GlossaryCreateGlossaryTermsdefaultResponse, + GlossaryCreateGlossaryTermsDefaultResponse, GlossaryGetEntitiesAssignedWithTerm200Response, - GlossaryGetEntitiesAssignedWithTermdefaultResponse, + GlossaryGetEntitiesAssignedWithTermDefaultResponse, GlossaryAssignTermToEntities204Response, - GlossaryAssignTermToEntitiesdefaultResponse, + GlossaryAssignTermToEntitiesDefaultResponse, GlossaryRemoveTermAssignmentFromEntities204Response, - GlossaryRemoveTermAssignmentFromEntitiesdefaultResponse, + GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse, GlossaryDeleteTermAssignmentFromEntities204Response, - GlossaryDeleteTermAssignmentFromEntitiesdefaultResponse, + GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse, GlossaryListRelatedTerms200Response, - GlossaryListRelatedTermsdefaultResponse, + GlossaryListRelatedTermsDefaultResponse, GlossaryGetGlossary200Response, - GlossaryGetGlossarydefaultResponse, + GlossaryGetGlossaryDefaultResponse, GlossaryUpdateGlossary200Response, - GlossaryUpdateGlossarydefaultResponse, + GlossaryUpdateGlossaryDefaultResponse, GlossaryDeleteGlossary204Response, - GlossaryDeleteGlossarydefaultResponse, + GlossaryDeleteGlossaryDefaultResponse, GlossaryListGlossaryCategories200Response, - GlossaryListGlossaryCategoriesdefaultResponse, + GlossaryListGlossaryCategoriesDefaultResponse, GlossaryListGlossaryCategoriesHeaders200Response, - GlossaryListGlossaryCategoriesHeadersdefaultResponse, + GlossaryListGlossaryCategoriesHeadersDefaultResponse, GlossaryGetDetailedGlossary200Response, - GlossaryGetDetailedGlossarydefaultResponse, + GlossaryGetDetailedGlossaryDefaultResponse, GlossaryPartialUpdateGlossary200Response, - GlossaryPartialUpdateGlossarydefaultResponse, + GlossaryPartialUpdateGlossaryDefaultResponse, GlossaryListGlossaryTerms200Response, - GlossaryListGlossaryTermsdefaultResponse, + GlossaryListGlossaryTermsDefaultResponse, GlossaryListGlossaryTermHeaders200Response, - GlossaryListGlossaryTermHeadersdefaultResponse, + GlossaryListGlossaryTermHeadersDefaultResponse, GlossaryImportGlossaryTermsViaCsv202Response, - GlossaryImportGlossaryTermsViaCsvdefaultResponse, + GlossaryImportGlossaryTermsViaCsvDefaultResponse, GlossaryImportGlossaryTermsViaCsvByGlossaryName202Response, - GlossaryImportGlossaryTermsViaCsvByGlossaryNamedefaultResponse, + GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse, GlossaryGetImportCsvOperationStatus200Response, - GlossaryGetImportCsvOperationStatusdefaultResponse, + GlossaryGetImportCsvOperationStatusDefaultResponse, GlossaryExportGlossaryTermsAsCsv200Response, - GlossaryExportGlossaryTermsAsCsvdefaultResponse, + GlossaryExportGlossaryTermsAsCsvDefaultResponse, GlossaryListTermsByGlossaryName200Response, - GlossaryListTermsByGlossaryNamedefaultResponse, + GlossaryListTermsByGlossaryNameDefaultResponse, DiscoveryQuery200Response, - DiscoveryQuerydefaultResponse, + DiscoveryQueryDefaultResponse, DiscoverySuggest200Response, - DiscoverySuggestdefaultResponse, + DiscoverySuggestDefaultResponse, DiscoveryBrowse200Response, - DiscoveryBrowsedefaultResponse, + DiscoveryBrowseDefaultResponse, DiscoveryAutoComplete200Response, - DiscoveryAutoCompletedefaultResponse, + DiscoveryAutoCompleteDefaultResponse, LineageGetLineageGraph200Response, - LineageGetLineageGraphdefaultResponse, + LineageGetLineageGraphDefaultResponse, LineageNextPageLineage200Response, - LineageNextPageLineagedefaultResponse, + LineageNextPageLineageDefaultResponse, LineageGetLineageByUniqueAttribute200Response, LineageGetLineageByUniqueAttribute400Response, LineageGetLineageByUniqueAttribute404Response, RelationshipCreate200Response, - RelationshipCreatedefaultResponse, + RelationshipCreateDefaultResponse, RelationshipUpdate200Response, - RelationshipUpdatedefaultResponse, + RelationshipUpdateDefaultResponse, RelationshipGet200Response, - RelationshipGetdefaultResponse, + RelationshipGetDefaultResponse, RelationshipDelete204Response, - RelationshipDeletedefaultResponse, + RelationshipDeleteDefaultResponse, TypesGetBusinessMetadataDefByGuid200Response, TypesGetBusinessMetadataDefByGuid404Response, TypesGetBusinessMetadataDefByName200Response, TypesGetBusinessMetadataDefByName404Response, TypesGetClassificationDefByGuid200Response, - TypesGetClassificationDefByGuiddefaultResponse, + TypesGetClassificationDefByGuidDefaultResponse, TypesGetClassificationDefByName200Response, - TypesGetClassificationDefByNamedefaultResponse, + TypesGetClassificationDefByNameDefaultResponse, TypesGetEntityDefinitionByGuid200Response, - TypesGetEntityDefinitionByGuiddefaultResponse, + TypesGetEntityDefinitionByGuidDefaultResponse, TypesGetEntityDefinitionByName200Response, - TypesGetEntityDefinitionByNamedefaultResponse, + TypesGetEntityDefinitionByNameDefaultResponse, TypesGetEnumDefByGuid200Response, - TypesGetEnumDefByGuiddefaultResponse, + TypesGetEnumDefByGuidDefaultResponse, TypesGetEnumDefByName200Response, - TypesGetEnumDefByNamedefaultResponse, + TypesGetEnumDefByNameDefaultResponse, TypesGetRelationshipDefByGuid200Response, - TypesGetRelationshipDefByGuiddefaultResponse, + TypesGetRelationshipDefByGuidDefaultResponse, TypesGetRelationshipDefByName200Response, - TypesGetRelationshipDefByNamedefaultResponse, + TypesGetRelationshipDefByNameDefaultResponse, TypesGetStructDefByGuid200Response, - TypesGetStructDefByGuiddefaultResponse, + TypesGetStructDefByGuidDefaultResponse, TypesGetStructDefByName200Response, - TypesGetStructDefByNamedefaultResponse, + TypesGetStructDefByNameDefaultResponse, TypesGetTypeDefinitionByGuid200Response, - TypesGetTypeDefinitionByGuiddefaultResponse, + TypesGetTypeDefinitionByGuidDefaultResponse, TypesGetTypeDefinitionByName200Response, - TypesGetTypeDefinitionByNamedefaultResponse, + TypesGetTypeDefinitionByNameDefaultResponse, TypesDeleteTypeByName204Response, - TypesDeleteTypeByNamedefaultResponse, + TypesDeleteTypeByNameDefaultResponse, TypesGetAllTypeDefinitions200Response, - TypesGetAllTypeDefinitionsdefaultResponse, + TypesGetAllTypeDefinitionsDefaultResponse, TypesCreateTypeDefinitions200Response, - TypesCreateTypeDefinitionsdefaultResponse, + TypesCreateTypeDefinitionsDefaultResponse, TypesUpdateAtlasTypeDefinitions200Response, - TypesUpdateAtlasTypeDefinitionsdefaultResponse, + TypesUpdateAtlasTypeDefinitionsDefaultResponse, TypesDeleteTypeDefinitions204Response, - TypesDeleteTypeDefinitionsdefaultResponse, + TypesDeleteTypeDefinitionsDefaultResponse, TypesListTypeDefinitionHeaders200Response, - TypesListTypeDefinitionHeadersdefaultResponse, + TypesListTypeDefinitionHeadersDefaultResponse, TypesGetTermTemplateDefByGuid200Response, - TypesGetTermTemplateDefByGuiddefaultResponse, + TypesGetTermTemplateDefByGuidDefaultResponse, TypesGetTermTemplateDefByName200Response, - TypesGetTermTemplateDefByNamedefaultResponse, + TypesGetTermTemplateDefByNameDefaultResponse, CollectionCreateOrUpdate200Response, - CollectionCreateOrUpdatedefaultResponse, + CollectionCreateOrUpdateDefaultResponse, CollectionCreateOrUpdateBulk200Response, - CollectionCreateOrUpdateBulkdefaultResponse, + CollectionCreateOrUpdateBulkDefaultResponse, CollectionMoveEntitiesToCollection200Response, - CollectionMoveEntitiesToCollectiondefaultResponse, + CollectionMoveEntitiesToCollectionDefaultResponse, } from "./responses.js"; -import type { Client } from "@azure-rest/core-client"; +import type { Client, StreamableMethod } from "@azure-rest/core-client"; export interface EntityCreateOrUpdate { /** @@ -322,14 +322,14 @@ export interface EntityCreateOrUpdate { */ post( options: EntityCreateOrUpdateParameters, - ): Promise; + ): StreamableMethod; } export interface EntityListByGuids { /** List entities in bulk identified by its GUIDs. */ get( options: EntityListByGuidsParameters, - ): Promise; + ): StreamableMethod; /** * Create or update entities in Atlas in bulk. * Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. @@ -337,25 +337,27 @@ export interface EntityListByGuids { */ post( options: EntityCreateOrUpdateEntitiesParameters, - ): Promise; + ): StreamableMethod< + EntityCreateOrUpdateEntities200Response | EntityCreateOrUpdateEntitiesDefaultResponse + >; /** Delete a list of entities in bulk identified by their GUIDs or unique attributes. */ delete( options: EntityDeleteByGuidsParameters, - ): Promise; + ): StreamableMethod; } export interface EntityAddClassification { /** Associate a classification to multiple entities in bulk. */ post( options: EntityAddClassificationParameters, - ): Promise; + ): StreamableMethod; } export interface EntityGetByGuid { /** Get complete definition of an entity given its GUID. */ get( options?: EntityGetByGuidParameters, - ): Promise; + ): StreamableMethod; /** * Update entity partially - create or update entity attribute identified by its GUID. * Supports only primitive attribute type and entity references. @@ -364,40 +366,48 @@ export interface EntityGetByGuid { */ put( options: EntityPartialUpdateEntityAttributeByGuidParameters, - ): Promise< + ): StreamableMethod< | EntityPartialUpdateEntityAttributeByGuid200Response - | EntityPartialUpdateEntityAttributeByGuiddefaultResponse + | EntityPartialUpdateEntityAttributeByGuidDefaultResponse >; /** Delete an entity identified by its GUID. */ delete( options?: EntityDeleteByGuidParameters, - ): Promise; + ): StreamableMethod; } export interface EntityGetClassification { /** List classifications for a given entity represented by a GUID. */ get( options?: EntityGetClassificationParameters, - ): Promise; + ): StreamableMethod; /** Delete a given classification from an existing entity represented by a GUID. */ delete( options?: EntityDeleteClassificationParameters, - ): Promise; + ): StreamableMethod< + EntityDeleteClassification204Response | EntityDeleteClassificationDefaultResponse + >; } export interface EntityGetClassifications { /** List classifications for a given entity represented by a GUID. */ get( options?: EntityGetClassificationsParameters, - ): Promise; + ): StreamableMethod< + EntityGetClassifications200Response | EntityGetClassificationsDefaultResponse + >; /** Add classifications to an existing entity represented by a GUID. */ post( options: EntityAddClassificationsParameters, - ): Promise; + ): StreamableMethod< + EntityAddClassifications204Response | EntityAddClassificationsDefaultResponse + >; /** Update classifications to an existing entity represented by a guid. */ put( options: EntityUpdateClassificationsParameters, - ): Promise; + ): StreamableMethod< + EntityUpdateClassifications204Response | EntityUpdateClassificationsDefaultResponse + >; } export interface EntityGetByUniqueAttributes { @@ -411,7 +421,9 @@ export interface EntityGetByUniqueAttributes { */ get( options?: EntityGetByUniqueAttributesParameters, - ): Promise; + ): StreamableMethod< + EntityGetByUniqueAttributes200Response | EntityGetByUniqueAttributesDefaultResponse + >; /** * Update entity partially - Allow a subset of attributes to be updated on * an entity which is identified by its type and unique attribute eg: Referenceable.qualifiedName. @@ -424,9 +436,9 @@ export interface EntityGetByUniqueAttributes { */ put( options: EntityPartialUpdateEntityByUniqueAttributesParameters, - ): Promise< + ): StreamableMethod< | EntityPartialUpdateEntityByUniqueAttributes200Response - | EntityPartialUpdateEntityByUniqueAttributesdefaultResponse + | EntityPartialUpdateEntityByUniqueAttributesDefaultResponse >; /** * Delete an entity identified by its type and unique attributes. @@ -438,8 +450,8 @@ export interface EntityGetByUniqueAttributes { */ delete( options?: EntityDeleteByUniqueAttributeParameters, - ): Promise< - EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributedefaultResponse + ): StreamableMethod< + EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributeDefaultResponse >; } @@ -447,9 +459,9 @@ export interface EntityDeleteClassificationByUniqueAttribute { /** Delete a given classification from an entity identified by its type and unique attributes. */ delete( options?: EntityDeleteClassificationByUniqueAttributeParameters, - ): Promise< + ): StreamableMethod< | EntityDeleteClassificationByUniqueAttribute204Response - | EntityDeleteClassificationByUniqueAttributedefaultResponse + | EntityDeleteClassificationByUniqueAttributeDefaultResponse >; } @@ -457,16 +469,16 @@ export interface EntityAddClassificationsByUniqueAttribute { /** Add classification to the entity identified by its type and unique attributes. */ post( options: EntityAddClassificationsByUniqueAttributeParameters, - ): Promise< + ): StreamableMethod< | EntityAddClassificationsByUniqueAttribute204Response - | EntityAddClassificationsByUniqueAttributedefaultResponse + | EntityAddClassificationsByUniqueAttributeDefaultResponse >; /** Update classification on an entity identified by its type and unique attributes. */ put( options: EntityUpdateClassificationsByUniqueAttributeParameters, - ): Promise< + ): StreamableMethod< | EntityUpdateClassificationsByUniqueAttribute204Response - | EntityUpdateClassificationsByUniqueAttributedefaultResponse + | EntityUpdateClassificationsByUniqueAttributeDefaultResponse >; } @@ -474,7 +486,9 @@ export interface EntitySetClassifications { /** Set classifications on entities in bulk. */ post( options: EntitySetClassificationsParameters, - ): Promise; + ): StreamableMethod< + EntitySetClassifications200Response | EntitySetClassificationsDefaultResponse + >; } export interface EntityGetEntitiesByUniqueAttributes { @@ -493,9 +507,9 @@ export interface EntityGetEntitiesByUniqueAttributes { */ get( options?: EntityGetEntitiesByUniqueAttributesParameters, - ): Promise< + ): StreamableMethod< | EntityGetEntitiesByUniqueAttributes200Response - | EntityGetEntitiesByUniqueAttributesdefaultResponse + | EntityGetEntitiesByUniqueAttributesDefaultResponse >; } @@ -503,36 +517,36 @@ export interface EntityGetHeader { /** Get entity header given its GUID. */ get( options?: EntityGetHeaderParameters, - ): Promise; + ): StreamableMethod; } export interface EntityDeleteBusinessMetadata { /** Remove business metadata from an entity. */ delete( options?: EntityDeleteBusinessMetadataParameters, - ): Promise; + ): StreamableMethod; /** Add business metadata to an entity. */ post( options?: EntityAddOrUpdateBusinessMetadataParameters, - ): Promise; + ): StreamableMethod; } export interface EntityDeleteBusinessMetadataAttributes { /** Delete business metadata attributes from an entity. */ delete( options?: EntityDeleteBusinessMetadataAttributesParameters, - ): Promise; + ): StreamableMethod; /** Add or update business metadata attributes */ post( options?: EntityAddOrUpdateBusinessMetadataAttributesParameters, - ): Promise; + ): StreamableMethod; } export interface EntityGetSampleBusinessMetadataTemplate { /** Get the sample Template for uploading/creating bulk BusinessMetaData */ get( options?: EntityGetSampleBusinessMetadataTemplateParameters, - ): Promise< + ): StreamableMethod< | EntityGetSampleBusinessMetadataTemplate200Response | EntityGetSampleBusinessMetadataTemplate400Response >; @@ -542,7 +556,7 @@ export interface EntityImportBusinessMetadata { /** Upload the file for creating Business Metadata in BULK */ post( options?: EntityImportBusinessMetadataParameters, - ): Promise< + ): StreamableMethod< | EntityImportBusinessMetadata200Response | EntityImportBusinessMetadata400Response | EntityImportBusinessMetadata409Response @@ -551,45 +565,45 @@ export interface EntityImportBusinessMetadata { export interface EntityDeleteLabels { /** delete given labels to a given entity */ - delete(options?: EntityDeleteLabelsParameters): Promise; + delete(options?: EntityDeleteLabelsParameters): StreamableMethod; /** Set labels to a given entity */ - post(options?: EntitySetLabelsParameters): Promise; + post(options?: EntitySetLabelsParameters): StreamableMethod; /** add given labels to a given entity */ - put(options?: EntityAddLabelParameters): Promise; + put(options?: EntityAddLabelParameters): StreamableMethod; } export interface EntityDeleteLabelsByUniqueAttribute { /** Delete given labels to a given entity identified by its type and unique attributes, if labels is null/empty, no labels will be removed. If any labels in labels set are non-existing labels, they will be ignored, only existing labels will be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:=. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ delete( options?: EntityDeleteLabelsByUniqueAttributeParameters, - ): Promise; + ): StreamableMethod; /** Set labels to a given entity identified by its type and unique attributes, if labels is null/empty, existing labels will all be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:=. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: POST /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ post( options?: EntitySetLabelsByUniqueAttributeParameters, - ): Promise; + ): StreamableMethod; /** Add given labels to a given entity identified by its type and unique attributes, if labels is null/empty, no labels will be added. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:=. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ put( options?: EntityAddLabelsByUniqueAttributeParameters, - ): Promise; + ): StreamableMethod; } export interface GlossaryListGlossaries { /** Get all glossaries registered with Atlas. */ get( options?: GlossaryListGlossariesParameters, - ): Promise; + ): StreamableMethod; /** Create a glossary. */ post( options: GlossaryCreateGlossaryParameters, - ): Promise; + ): StreamableMethod; } export interface GlossaryCreateGlossaryCategories { /** Create glossary category in bulk. */ post( options: GlossaryCreateGlossaryCategoriesParameters, - ): Promise< - GlossaryCreateGlossaryCategories200Response | GlossaryCreateGlossaryCategoriesdefaultResponse + ): StreamableMethod< + GlossaryCreateGlossaryCategories200Response | GlossaryCreateGlossaryCategoriesDefaultResponse >; } @@ -597,8 +611,8 @@ export interface GlossaryCreateGlossaryCategory { /** Create a glossary category. */ post( options: GlossaryCreateGlossaryCategoryParameters, - ): Promise< - GlossaryCreateGlossaryCategory200Response | GlossaryCreateGlossaryCategorydefaultResponse + ): StreamableMethod< + GlossaryCreateGlossaryCategory200Response | GlossaryCreateGlossaryCategoryDefaultResponse >; } @@ -606,18 +620,20 @@ export interface GlossaryGetGlossaryCategory { /** Get specific glossary category by its GUID. */ get( options?: GlossaryGetGlossaryCategoryParameters, - ): Promise; + ): StreamableMethod< + GlossaryGetGlossaryCategory200Response | GlossaryGetGlossaryCategoryDefaultResponse + >; /** Update the given glossary category by its GUID. */ put( options: GlossaryUpdateGlossaryCategoryParameters, - ): Promise< - GlossaryUpdateGlossaryCategory200Response | GlossaryUpdateGlossaryCategorydefaultResponse + ): StreamableMethod< + GlossaryUpdateGlossaryCategory200Response | GlossaryUpdateGlossaryCategoryDefaultResponse >; /** Delete a glossary category. */ delete( options?: GlossaryDeleteGlossaryCategoryParameters, - ): Promise< - GlossaryDeleteGlossaryCategory204Response | GlossaryDeleteGlossaryCategorydefaultResponse + ): StreamableMethod< + GlossaryDeleteGlossaryCategory204Response | GlossaryDeleteGlossaryCategoryDefaultResponse >; } @@ -625,9 +641,9 @@ export interface GlossaryPartialUpdateGlossaryCategory { /** Update the glossary category partially. */ put( options: GlossaryPartialUpdateGlossaryCategoryParameters, - ): Promise< + ): StreamableMethod< | GlossaryPartialUpdateGlossaryCategory200Response - | GlossaryPartialUpdateGlossaryCategorydefaultResponse + | GlossaryPartialUpdateGlossaryCategoryDefaultResponse >; } @@ -635,8 +651,8 @@ export interface GlossaryListRelatedCategories { /** Get all related categories (parent and children). Limit, offset, and sort parameters are currently not being enabled and won't work even they are passed. */ get( options?: GlossaryListRelatedCategoriesParameters, - ): Promise< - GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesdefaultResponse + ): StreamableMethod< + GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesDefaultResponse >; } @@ -644,37 +660,45 @@ export interface GlossaryListCategoryTerms { /** Get all terms associated with the specific category. */ get( options?: GlossaryListCategoryTermsParameters, - ): Promise; + ): StreamableMethod< + GlossaryListCategoryTerms200Response | GlossaryListCategoryTermsDefaultResponse + >; } export interface GlossaryCreateGlossaryTerm { /** Create a glossary term. */ post( options: GlossaryCreateGlossaryTermParameters, - ): Promise; + ): StreamableMethod< + GlossaryCreateGlossaryTerm200Response | GlossaryCreateGlossaryTermDefaultResponse + >; } export interface GlossaryGetGlossaryTerm { /** Get a specific glossary term by its GUID. */ get( options?: GlossaryGetGlossaryTermParameters, - ): Promise; + ): StreamableMethod; /** Update the given glossary term by its GUID. */ put( options: GlossaryUpdateGlossaryTermParameters, - ): Promise; + ): StreamableMethod< + GlossaryUpdateGlossaryTerm200Response | GlossaryUpdateGlossaryTermDefaultResponse + >; /** Delete a glossary term. */ delete( options?: GlossaryDeleteGlossaryTermParameters, - ): Promise; + ): StreamableMethod< + GlossaryDeleteGlossaryTerm204Response | GlossaryDeleteGlossaryTermDefaultResponse + >; } export interface GlossaryPartialUpdateGlossaryTerm { /** Update the glossary term partially. */ put( options: GlossaryPartialUpdateGlossaryTermParameters, - ): Promise< - GlossaryPartialUpdateGlossaryTerm200Response | GlossaryPartialUpdateGlossaryTermdefaultResponse + ): StreamableMethod< + GlossaryPartialUpdateGlossaryTerm200Response | GlossaryPartialUpdateGlossaryTermDefaultResponse >; } @@ -682,34 +706,38 @@ export interface GlossaryCreateGlossaryTerms { /** Create glossary terms in bulk. */ post( options: GlossaryCreateGlossaryTermsParameters, - ): Promise; + ): StreamableMethod< + GlossaryCreateGlossaryTerms200Response | GlossaryCreateGlossaryTermsDefaultResponse + >; } export interface GlossaryGetEntitiesAssignedWithTerm { /** Get all related objects assigned with the specified term. */ get( options?: GlossaryGetEntitiesAssignedWithTermParameters, - ): Promise< + ): StreamableMethod< | GlossaryGetEntitiesAssignedWithTerm200Response - | GlossaryGetEntitiesAssignedWithTermdefaultResponse + | GlossaryGetEntitiesAssignedWithTermDefaultResponse >; /** Assign the given term to the provided list of related objects. */ post( options: GlossaryAssignTermToEntitiesParameters, - ): Promise; + ): StreamableMethod< + GlossaryAssignTermToEntities204Response | GlossaryAssignTermToEntitiesDefaultResponse + >; /** Delete the term assignment for the given list of related objects. */ put( options: GlossaryRemoveTermAssignmentFromEntitiesParameters, - ): Promise< + ): StreamableMethod< | GlossaryRemoveTermAssignmentFromEntities204Response - | GlossaryRemoveTermAssignmentFromEntitiesdefaultResponse + | GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse >; /** Delete the term assignment for the given list of related objects. */ delete( options: GlossaryDeleteTermAssignmentFromEntitiesParameters, - ): Promise< + ): StreamableMethod< | GlossaryDeleteTermAssignmentFromEntities204Response - | GlossaryDeleteTermAssignmentFromEntitiesdefaultResponse + | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse >; } @@ -717,30 +745,32 @@ export interface GlossaryListRelatedTerms { /** Get all related terms for a specific term by its GUID. Limit, offset, and sort parameters are currently not being enabled and won't work even they are passed. */ get( options?: GlossaryListRelatedTermsParameters, - ): Promise; + ): StreamableMethod< + GlossaryListRelatedTerms200Response | GlossaryListRelatedTermsDefaultResponse + >; } export interface GlossaryGetGlossary { /** Get a specific Glossary by its GUID. */ get( options?: GlossaryGetGlossaryParameters, - ): Promise; + ): StreamableMethod; /** Update the given glossary. */ put( options: GlossaryUpdateGlossaryParameters, - ): Promise; + ): StreamableMethod; /** Delete a glossary. */ delete( options?: GlossaryDeleteGlossaryParameters, - ): Promise; + ): StreamableMethod; } export interface GlossaryListGlossaryCategories { /** Get the categories belonging to a specific glossary. */ get( options?: GlossaryListGlossaryCategoriesParameters, - ): Promise< - GlossaryListGlossaryCategories200Response | GlossaryListGlossaryCategoriesdefaultResponse + ): StreamableMethod< + GlossaryListGlossaryCategories200Response | GlossaryListGlossaryCategoriesDefaultResponse >; } @@ -748,9 +778,9 @@ export interface GlossaryListGlossaryCategoriesHeaders { /** Get the category headers belonging to a specific glossary. */ get( options?: GlossaryListGlossaryCategoriesHeadersParameters, - ): Promise< + ): StreamableMethod< | GlossaryListGlossaryCategoriesHeaders200Response - | GlossaryListGlossaryCategoriesHeadersdefaultResponse + | GlossaryListGlossaryCategoriesHeadersDefaultResponse >; } @@ -758,15 +788,17 @@ export interface GlossaryGetDetailedGlossary { /** Get a specific glossary with detailed information. */ get( options?: GlossaryGetDetailedGlossaryParameters, - ): Promise; + ): StreamableMethod< + GlossaryGetDetailedGlossary200Response | GlossaryGetDetailedGlossaryDefaultResponse + >; } export interface GlossaryPartialUpdateGlossary { /** Update the glossary partially. Some properties such as qualifiedName are not allowed to be updated. */ put( options: GlossaryPartialUpdateGlossaryParameters, - ): Promise< - GlossaryPartialUpdateGlossary200Response | GlossaryPartialUpdateGlossarydefaultResponse + ): StreamableMethod< + GlossaryPartialUpdateGlossary200Response | GlossaryPartialUpdateGlossaryDefaultResponse >; } @@ -774,15 +806,17 @@ export interface GlossaryListGlossaryTerms { /** Get terms belonging to a specific glossary. */ get( options?: GlossaryListGlossaryTermsParameters, - ): Promise; + ): StreamableMethod< + GlossaryListGlossaryTerms200Response | GlossaryListGlossaryTermsDefaultResponse + >; } export interface GlossaryListGlossaryTermHeaders { /** Get term headers belonging to a specific glossary. */ get( options?: GlossaryListGlossaryTermHeadersParameters, - ): Promise< - GlossaryListGlossaryTermHeaders200Response | GlossaryListGlossaryTermHeadersdefaultResponse + ): StreamableMethod< + GlossaryListGlossaryTermHeaders200Response | GlossaryListGlossaryTermHeadersDefaultResponse >; } @@ -790,8 +824,8 @@ export interface GlossaryImportGlossaryTermsViaCsv { /** Import Glossary Terms from local csv file */ post( options: GlossaryImportGlossaryTermsViaCsvParameters, - ): Promise< - GlossaryImportGlossaryTermsViaCsv202Response | GlossaryImportGlossaryTermsViaCsvdefaultResponse + ): StreamableMethod< + GlossaryImportGlossaryTermsViaCsv202Response | GlossaryImportGlossaryTermsViaCsvDefaultResponse >; } @@ -799,9 +833,9 @@ export interface GlossaryImportGlossaryTermsViaCsvByGlossaryName { /** Import Glossary Terms from local csv file by glossaryName */ post( options: GlossaryImportGlossaryTermsViaCsvByGlossaryNameParameters, - ): Promise< + ): StreamableMethod< | GlossaryImportGlossaryTermsViaCsvByGlossaryName202Response - | GlossaryImportGlossaryTermsViaCsvByGlossaryNamedefaultResponse + | GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse >; } @@ -809,9 +843,9 @@ export interface GlossaryGetImportCsvOperationStatus { /** Get the status of import csv operation */ get( options?: GlossaryGetImportCsvOperationStatusParameters, - ): Promise< + ): StreamableMethod< | GlossaryGetImportCsvOperationStatus200Response - | GlossaryGetImportCsvOperationStatusdefaultResponse + | GlossaryGetImportCsvOperationStatusDefaultResponse >; } @@ -819,8 +853,8 @@ export interface GlossaryExportGlossaryTermsAsCsv { /** Export Glossary Terms as csv file */ post( options: GlossaryExportGlossaryTermsAsCsvParameters, - ): Promise< - GlossaryExportGlossaryTermsAsCsv200Response | GlossaryExportGlossaryTermsAsCsvdefaultResponse + ): StreamableMethod< + GlossaryExportGlossaryTermsAsCsv200Response | GlossaryExportGlossaryTermsAsCsvDefaultResponse >; } @@ -828,8 +862,8 @@ export interface GlossaryListTermsByGlossaryName { /** Get terms by glossary name. */ get( options?: GlossaryListTermsByGlossaryNameParameters, - ): Promise< - GlossaryListTermsByGlossaryName200Response | GlossaryListTermsByGlossaryNamedefaultResponse + ): StreamableMethod< + GlossaryListTermsByGlossaryName200Response | GlossaryListTermsByGlossaryNameDefaultResponse >; } @@ -837,42 +871,42 @@ export interface DiscoveryQuery { /** Gets data using search. */ post( options: DiscoveryQueryParameters, - ): Promise; + ): StreamableMethod; } export interface DiscoverySuggest { /** Get search suggestions by query criteria. */ post( options: DiscoverySuggestParameters, - ): Promise; + ): StreamableMethod; } export interface DiscoveryBrowse { /** Browse entities by path or entity type. */ post( options: DiscoveryBrowseParameters, - ): Promise; + ): StreamableMethod; } export interface DiscoveryAutoComplete { /** Get auto complete options. */ post( options: DiscoveryAutoCompleteParameters, - ): Promise; + ): StreamableMethod; } export interface LineageGetLineageGraph { /** Get lineage info of the entity specified by GUID. */ get( options: LineageGetLineageGraphParameters, - ): Promise; + ): StreamableMethod; } export interface LineageNextPageLineage { /** Return immediate next page lineage info about entity with pagination */ get( options: LineageNextPageLineageParameters, - ): Promise; + ): StreamableMethod; } export interface LineageGetLineageByUniqueAttribute { @@ -887,7 +921,7 @@ export interface LineageGetLineageByUniqueAttribute { */ get( options: LineageGetLineageByUniqueAttributeParameters, - ): Promise< + ): StreamableMethod< | LineageGetLineageByUniqueAttribute200Response | LineageGetLineageByUniqueAttribute400Response | LineageGetLineageByUniqueAttribute404Response @@ -898,29 +932,29 @@ export interface RelationshipCreate { /** Create a new relationship between entities. */ post( options: RelationshipCreateParameters, - ): Promise; + ): StreamableMethod; /** Update an existing relationship between entities. */ put( options: RelationshipUpdateParameters, - ): Promise; + ): StreamableMethod; } export interface RelationshipGet { /** Get relationship information between entities by its GUID. */ get( options?: RelationshipGetParameters, - ): Promise; + ): StreamableMethod; /** Delete a relationship between entities by its GUID. */ delete( options?: RelationshipDeleteParameters, - ): Promise; + ): StreamableMethod; } export interface TypesGetBusinessMetadataDefByGuid { /** Get the businessMetadata definition for the given guid */ get( options?: TypesGetBusinessMetadataDefByGuidParameters, - ): Promise< + ): StreamableMethod< TypesGetBusinessMetadataDefByGuid200Response | TypesGetBusinessMetadataDefByGuid404Response >; } @@ -929,7 +963,7 @@ export interface TypesGetBusinessMetadataDefByName { /** Get the businessMetadata definition by it's name (unique) */ get( options?: TypesGetBusinessMetadataDefByNameParameters, - ): Promise< + ): StreamableMethod< TypesGetBusinessMetadataDefByName200Response | TypesGetBusinessMetadataDefByName404Response >; } @@ -938,8 +972,8 @@ export interface TypesGetClassificationDefByGuid { /** Get the classification definition for the given GUID. */ get( options?: TypesGetClassificationDefByGuidParameters, - ): Promise< - TypesGetClassificationDefByGuid200Response | TypesGetClassificationDefByGuiddefaultResponse + ): StreamableMethod< + TypesGetClassificationDefByGuid200Response | TypesGetClassificationDefByGuidDefaultResponse >; } @@ -947,8 +981,8 @@ export interface TypesGetClassificationDefByName { /** Get the classification definition by its name (unique). */ get( options?: TypesGetClassificationDefByNameParameters, - ): Promise< - TypesGetClassificationDefByName200Response | TypesGetClassificationDefByNamedefaultResponse + ): StreamableMethod< + TypesGetClassificationDefByName200Response | TypesGetClassificationDefByNameDefaultResponse >; } @@ -956,8 +990,8 @@ export interface TypesGetEntityDefinitionByGuid { /** Get the Entity definition for the given GUID. */ get( options?: TypesGetEntityDefinitionByGuidParameters, - ): Promise< - TypesGetEntityDefinitionByGuid200Response | TypesGetEntityDefinitionByGuiddefaultResponse + ): StreamableMethod< + TypesGetEntityDefinitionByGuid200Response | TypesGetEntityDefinitionByGuidDefaultResponse >; } @@ -965,8 +999,8 @@ export interface TypesGetEntityDefinitionByName { /** Get the entity definition by its name (unique). */ get( options?: TypesGetEntityDefinitionByNameParameters, - ): Promise< - TypesGetEntityDefinitionByName200Response | TypesGetEntityDefinitionByNamedefaultResponse + ): StreamableMethod< + TypesGetEntityDefinitionByName200Response | TypesGetEntityDefinitionByNameDefaultResponse >; } @@ -974,22 +1008,22 @@ export interface TypesGetEnumDefByGuid { /** Get the enum definition for the given GUID. */ get( options?: TypesGetEnumDefByGuidParameters, - ): Promise; + ): StreamableMethod; } export interface TypesGetEnumDefByName { /** Get the enum definition by its name (unique). */ get( options?: TypesGetEnumDefByNameParameters, - ): Promise; + ): StreamableMethod; } export interface TypesGetRelationshipDefByGuid { /** Get the relationship definition for the given GUID. */ get( options?: TypesGetRelationshipDefByGuidParameters, - ): Promise< - TypesGetRelationshipDefByGuid200Response | TypesGetRelationshipDefByGuiddefaultResponse + ): StreamableMethod< + TypesGetRelationshipDefByGuid200Response | TypesGetRelationshipDefByGuidDefaultResponse >; } @@ -997,8 +1031,8 @@ export interface TypesGetRelationshipDefByName { /** Get the relationship definition by its name (unique). */ get( options?: TypesGetRelationshipDefByNameParameters, - ): Promise< - TypesGetRelationshipDefByName200Response | TypesGetRelationshipDefByNamedefaultResponse + ): StreamableMethod< + TypesGetRelationshipDefByName200Response | TypesGetRelationshipDefByNameDefaultResponse >; } @@ -1006,64 +1040,74 @@ export interface TypesGetStructDefByGuid { /** Get the struct definition for the given GUID. */ get( options?: TypesGetStructDefByGuidParameters, - ): Promise; + ): StreamableMethod; } export interface TypesGetStructDefByName { /** Get the struct definition by its name (unique). */ get( options?: TypesGetStructDefByNameParameters, - ): Promise; + ): StreamableMethod; } export interface TypesGetTypeDefinitionByGuid { /** Get the type definition for the given GUID. */ get( options?: TypesGetTypeDefinitionByGuidParameters, - ): Promise; + ): StreamableMethod< + TypesGetTypeDefinitionByGuid200Response | TypesGetTypeDefinitionByGuidDefaultResponse + >; } export interface TypesGetTypeDefinitionByName { /** Get the type definition by its name (unique). */ get( options?: TypesGetTypeDefinitionByNameParameters, - ): Promise; + ): StreamableMethod< + TypesGetTypeDefinitionByName200Response | TypesGetTypeDefinitionByNameDefaultResponse + >; /** Delete API for type identified by its name. */ delete( options?: TypesDeleteTypeByNameParameters, - ): Promise; + ): StreamableMethod; } export interface TypesGetAllTypeDefinitions { /** Get all type definitions in Atlas in bulk. */ get( options?: TypesGetAllTypeDefinitionsParameters, - ): Promise; + ): StreamableMethod< + TypesGetAllTypeDefinitions200Response | TypesGetAllTypeDefinitionsDefaultResponse + >; /** * Create all atlas type definitions in bulk, only new definitions will be created. * Any changes to the existing definitions will be discarded. */ post( options: TypesCreateTypeDefinitionsParameters, - ): Promise; + ): StreamableMethod< + TypesCreateTypeDefinitions200Response | TypesCreateTypeDefinitionsDefaultResponse + >; /** Update all types in bulk, changes detected in the type definitions would be persisted. */ put( options: TypesUpdateAtlasTypeDefinitionsParameters, - ): Promise< - TypesUpdateAtlasTypeDefinitions200Response | TypesUpdateAtlasTypeDefinitionsdefaultResponse + ): StreamableMethod< + TypesUpdateAtlasTypeDefinitions200Response | TypesUpdateAtlasTypeDefinitionsDefaultResponse >; /** Delete API for all types in bulk. */ delete( options: TypesDeleteTypeDefinitionsParameters, - ): Promise; + ): StreamableMethod< + TypesDeleteTypeDefinitions204Response | TypesDeleteTypeDefinitionsDefaultResponse + >; } export interface TypesListTypeDefinitionHeaders { /** List all type definitions returned as a list of minimal information header. */ get( options?: TypesListTypeDefinitionHeadersParameters, - ): Promise< - TypesListTypeDefinitionHeaders200Response | TypesListTypeDefinitionHeadersdefaultResponse + ): StreamableMethod< + TypesListTypeDefinitionHeaders200Response | TypesListTypeDefinitionHeadersDefaultResponse >; } @@ -1071,8 +1115,8 @@ export interface TypesGetTermTemplateDefByGuid { /** Get the term template definition for the given GUID. */ get( options?: TypesGetTermTemplateDefByGuidParameters, - ): Promise< - TypesGetTermTemplateDefByGuid200Response | TypesGetTermTemplateDefByGuiddefaultResponse + ): StreamableMethod< + TypesGetTermTemplateDefByGuid200Response | TypesGetTermTemplateDefByGuidDefaultResponse >; } @@ -1080,8 +1124,8 @@ export interface TypesGetTermTemplateDefByName { /** Get the term template definition by its name (unique). */ get( options?: TypesGetTermTemplateDefByNameParameters, - ): Promise< - TypesGetTermTemplateDefByName200Response | TypesGetTermTemplateDefByNamedefaultResponse + ): StreamableMethod< + TypesGetTermTemplateDefByName200Response | TypesGetTermTemplateDefByNameDefaultResponse >; } @@ -1093,7 +1137,9 @@ export interface CollectionCreateOrUpdate { */ post( options: CollectionCreateOrUpdateParameters, - ): Promise; + ): StreamableMethod< + CollectionCreateOrUpdate200Response | CollectionCreateOrUpdateDefaultResponse + >; } export interface CollectionCreateOrUpdateBulk { @@ -1104,16 +1150,18 @@ export interface CollectionCreateOrUpdateBulk { */ post( options: CollectionCreateOrUpdateBulkParameters, - ): Promise; + ): StreamableMethod< + CollectionCreateOrUpdateBulk200Response | CollectionCreateOrUpdateBulkDefaultResponse + >; } export interface CollectionMoveEntitiesToCollection { /** Move existing entities to the target collection. */ post( options: CollectionMoveEntitiesToCollectionParameters, - ): Promise< + ): StreamableMethod< | CollectionMoveEntitiesToCollection200Response - | CollectionMoveEntitiesToCollectiondefaultResponse + | CollectionMoveEntitiesToCollectionDefaultResponse >; } diff --git a/sdk/purview/purview-catalog-rest/src/index.ts b/sdk/purview/purview-catalog-rest/src/index.ts index d041e0bf39e8..6304f4e6fbdc 100644 --- a/sdk/purview/purview-catalog-rest/src/index.ts +++ b/sdk/purview/purview-catalog-rest/src/index.ts @@ -7,8 +7,10 @@ export * from "./purviewCatalog.js"; export * from "./parameters.js"; export * from "./responses.js"; export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; export * from "./models.js"; export * from "./outputModels.js"; export * from "./pollingHelper.js"; +export * from "./serializeHelper.js"; export default PurviewCatalog; diff --git a/sdk/purview/purview-catalog-rest/src/isUnexpected.ts b/sdk/purview/purview-catalog-rest/src/isUnexpected.ts new file mode 100644 index 000000000000..95e4bd668b2d --- /dev/null +++ b/sdk/purview/purview-catalog-rest/src/isUnexpected.ts @@ -0,0 +1,1034 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import type { + EntityCreateOrUpdate200Response, + EntityCreateOrUpdateDefaultResponse, + EntityListByGuids200Response, + EntityListByGuidsDefaultResponse, + EntityCreateOrUpdateEntities200Response, + EntityCreateOrUpdateEntitiesDefaultResponse, + EntityDeleteByGuids200Response, + EntityDeleteByGuidsDefaultResponse, + EntityAddClassification204Response, + EntityAddClassificationDefaultResponse, + EntityGetByGuid200Response, + EntityGetByGuidDefaultResponse, + EntityPartialUpdateEntityAttributeByGuid200Response, + EntityPartialUpdateEntityAttributeByGuidDefaultResponse, + EntityDeleteByGuid200Response, + EntityDeleteByGuidDefaultResponse, + EntityGetClassification200Response, + EntityGetClassificationDefaultResponse, + EntityDeleteClassification204Response, + EntityDeleteClassificationDefaultResponse, + EntityGetClassifications200Response, + EntityGetClassificationsDefaultResponse, + EntityAddClassifications204Response, + EntityAddClassificationsDefaultResponse, + EntityUpdateClassifications204Response, + EntityUpdateClassificationsDefaultResponse, + EntityGetByUniqueAttributes200Response, + EntityGetByUniqueAttributesDefaultResponse, + EntityPartialUpdateEntityByUniqueAttributes200Response, + EntityPartialUpdateEntityByUniqueAttributesDefaultResponse, + EntityDeleteByUniqueAttribute200Response, + EntityDeleteByUniqueAttributeDefaultResponse, + EntityDeleteClassificationByUniqueAttribute204Response, + EntityDeleteClassificationByUniqueAttributeDefaultResponse, + EntityAddClassificationsByUniqueAttribute204Response, + EntityAddClassificationsByUniqueAttributeDefaultResponse, + EntityUpdateClassificationsByUniqueAttribute204Response, + EntityUpdateClassificationsByUniqueAttributeDefaultResponse, + EntitySetClassifications200Response, + EntitySetClassificationsDefaultResponse, + EntityGetEntitiesByUniqueAttributes200Response, + EntityGetEntitiesByUniqueAttributesDefaultResponse, + EntityGetHeader200Response, + EntityGetHeaderDefaultResponse, + EntityGetSampleBusinessMetadataTemplate200Response, + EntityGetSampleBusinessMetadataTemplate400Response, + EntityImportBusinessMetadata200Response, + EntityImportBusinessMetadata400Response, + EntityImportBusinessMetadata409Response, + GlossaryListGlossaries200Response, + GlossaryListGlossariesDefaultResponse, + GlossaryCreateGlossary200Response, + GlossaryCreateGlossaryDefaultResponse, + GlossaryCreateGlossaryCategories200Response, + GlossaryCreateGlossaryCategoriesDefaultResponse, + GlossaryCreateGlossaryCategory200Response, + GlossaryCreateGlossaryCategoryDefaultResponse, + GlossaryGetGlossaryCategory200Response, + GlossaryGetGlossaryCategoryDefaultResponse, + GlossaryUpdateGlossaryCategory200Response, + GlossaryUpdateGlossaryCategoryDefaultResponse, + GlossaryDeleteGlossaryCategory204Response, + GlossaryDeleteGlossaryCategoryDefaultResponse, + GlossaryPartialUpdateGlossaryCategory200Response, + GlossaryPartialUpdateGlossaryCategoryDefaultResponse, + GlossaryListRelatedCategories200Response, + GlossaryListRelatedCategoriesDefaultResponse, + GlossaryListCategoryTerms200Response, + GlossaryListCategoryTermsDefaultResponse, + GlossaryCreateGlossaryTerm200Response, + GlossaryCreateGlossaryTermDefaultResponse, + GlossaryGetGlossaryTerm200Response, + GlossaryGetGlossaryTermDefaultResponse, + GlossaryUpdateGlossaryTerm200Response, + GlossaryUpdateGlossaryTermDefaultResponse, + GlossaryDeleteGlossaryTerm204Response, + GlossaryDeleteGlossaryTermDefaultResponse, + GlossaryPartialUpdateGlossaryTerm200Response, + GlossaryPartialUpdateGlossaryTermDefaultResponse, + GlossaryCreateGlossaryTerms200Response, + GlossaryCreateGlossaryTermsDefaultResponse, + GlossaryGetEntitiesAssignedWithTerm200Response, + GlossaryGetEntitiesAssignedWithTermDefaultResponse, + GlossaryAssignTermToEntities204Response, + GlossaryAssignTermToEntitiesDefaultResponse, + GlossaryRemoveTermAssignmentFromEntities204Response, + GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse, + GlossaryDeleteTermAssignmentFromEntities204Response, + GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse, + GlossaryListRelatedTerms200Response, + GlossaryListRelatedTermsDefaultResponse, + GlossaryGetGlossary200Response, + GlossaryGetGlossaryDefaultResponse, + GlossaryUpdateGlossary200Response, + GlossaryUpdateGlossaryDefaultResponse, + GlossaryDeleteGlossary204Response, + GlossaryDeleteGlossaryDefaultResponse, + GlossaryListGlossaryCategories200Response, + GlossaryListGlossaryCategoriesDefaultResponse, + GlossaryListGlossaryCategoriesHeaders200Response, + GlossaryListGlossaryCategoriesHeadersDefaultResponse, + GlossaryGetDetailedGlossary200Response, + GlossaryGetDetailedGlossaryDefaultResponse, + GlossaryPartialUpdateGlossary200Response, + GlossaryPartialUpdateGlossaryDefaultResponse, + GlossaryListGlossaryTerms200Response, + GlossaryListGlossaryTermsDefaultResponse, + GlossaryListGlossaryTermHeaders200Response, + GlossaryListGlossaryTermHeadersDefaultResponse, + GlossaryImportGlossaryTermsViaCsv202Response, + GlossaryImportGlossaryTermsViaCsvDefaultResponse, + GlossaryImportGlossaryTermsViaCsvByGlossaryName202Response, + GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse, + GlossaryGetImportCsvOperationStatus200Response, + GlossaryGetImportCsvOperationStatusDefaultResponse, + GlossaryExportGlossaryTermsAsCsv200Response, + GlossaryExportGlossaryTermsAsCsvDefaultResponse, + GlossaryListTermsByGlossaryName200Response, + GlossaryListTermsByGlossaryNameDefaultResponse, + DiscoveryQuery200Response, + DiscoveryQueryDefaultResponse, + DiscoverySuggest200Response, + DiscoverySuggestDefaultResponse, + DiscoveryBrowse200Response, + DiscoveryBrowseDefaultResponse, + DiscoveryAutoComplete200Response, + DiscoveryAutoCompleteDefaultResponse, + LineageGetLineageGraph200Response, + LineageGetLineageGraphDefaultResponse, + LineageNextPageLineage200Response, + LineageNextPageLineageDefaultResponse, + LineageGetLineageByUniqueAttribute200Response, + LineageGetLineageByUniqueAttribute400Response, + LineageGetLineageByUniqueAttribute404Response, + RelationshipCreate200Response, + RelationshipCreateDefaultResponse, + RelationshipUpdate200Response, + RelationshipUpdateDefaultResponse, + RelationshipGet200Response, + RelationshipGetDefaultResponse, + RelationshipDelete204Response, + RelationshipDeleteDefaultResponse, + TypesGetBusinessMetadataDefByGuid200Response, + TypesGetBusinessMetadataDefByGuid404Response, + TypesGetBusinessMetadataDefByName200Response, + TypesGetBusinessMetadataDefByName404Response, + TypesGetClassificationDefByGuid200Response, + TypesGetClassificationDefByGuidDefaultResponse, + TypesGetClassificationDefByName200Response, + TypesGetClassificationDefByNameDefaultResponse, + TypesGetEntityDefinitionByGuid200Response, + TypesGetEntityDefinitionByGuidDefaultResponse, + TypesGetEntityDefinitionByName200Response, + TypesGetEntityDefinitionByNameDefaultResponse, + TypesGetEnumDefByGuid200Response, + TypesGetEnumDefByGuidDefaultResponse, + TypesGetEnumDefByName200Response, + TypesGetEnumDefByNameDefaultResponse, + TypesGetRelationshipDefByGuid200Response, + TypesGetRelationshipDefByGuidDefaultResponse, + TypesGetRelationshipDefByName200Response, + TypesGetRelationshipDefByNameDefaultResponse, + TypesGetStructDefByGuid200Response, + TypesGetStructDefByGuidDefaultResponse, + TypesGetStructDefByName200Response, + TypesGetStructDefByNameDefaultResponse, + TypesGetTypeDefinitionByGuid200Response, + TypesGetTypeDefinitionByGuidDefaultResponse, + TypesGetTypeDefinitionByName200Response, + TypesGetTypeDefinitionByNameDefaultResponse, + TypesDeleteTypeByName204Response, + TypesDeleteTypeByNameDefaultResponse, + TypesGetAllTypeDefinitions200Response, + TypesGetAllTypeDefinitionsDefaultResponse, + TypesCreateTypeDefinitions200Response, + TypesCreateTypeDefinitionsDefaultResponse, + TypesUpdateAtlasTypeDefinitions200Response, + TypesUpdateAtlasTypeDefinitionsDefaultResponse, + TypesDeleteTypeDefinitions204Response, + TypesDeleteTypeDefinitionsDefaultResponse, + TypesListTypeDefinitionHeaders200Response, + TypesListTypeDefinitionHeadersDefaultResponse, + TypesGetTermTemplateDefByGuid200Response, + TypesGetTermTemplateDefByGuidDefaultResponse, + TypesGetTermTemplateDefByName200Response, + TypesGetTermTemplateDefByNameDefaultResponse, + CollectionCreateOrUpdate200Response, + CollectionCreateOrUpdateDefaultResponse, + CollectionCreateOrUpdateBulk200Response, + CollectionCreateOrUpdateBulkDefaultResponse, + CollectionMoveEntitiesToCollection200Response, + CollectionMoveEntitiesToCollectionDefaultResponse, +} from "./responses.js"; + +const responseMap: Record = { + "POST /atlas/v2/entity": ["200"], + "GET /atlas/v2/entity/bulk": ["200"], + "POST /atlas/v2/entity/bulk": ["200"], + "DELETE /atlas/v2/entity/bulk": ["200"], + "POST /atlas/v2/entity/bulk/classification": ["204"], + "GET /atlas/v2/entity/guid/{guid}": ["200"], + "PUT /atlas/v2/entity/guid/{guid}": ["200"], + "DELETE /atlas/v2/entity/guid/{guid}": ["200"], + "GET /atlas/v2/entity/guid/{guid}/classification/{classificationName}": ["200"], + "DELETE /atlas/v2/entity/guid/{guid}/classification/{classificationName}": ["204"], + "GET /atlas/v2/entity/guid/{guid}/classifications": ["200"], + "POST /atlas/v2/entity/guid/{guid}/classifications": ["204"], + "PUT /atlas/v2/entity/guid/{guid}/classifications": ["204"], + "GET /atlas/v2/entity/uniqueAttribute/type/{typeName}": ["200"], + "PUT /atlas/v2/entity/uniqueAttribute/type/{typeName}": ["200"], + "DELETE /atlas/v2/entity/uniqueAttribute/type/{typeName}": ["200"], + "DELETE /atlas/v2/entity/uniqueAttribute/type/{typeName}/classification/{classificationName}": [ + "204", + ], + "POST /atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications": ["204"], + "PUT /atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications": ["204"], + "POST /atlas/v2/entity/bulk/setClassifications": ["200"], + "GET /atlas/v2/entity/bulk/uniqueAttribute/type/{typeName}": ["200"], + "GET /atlas/v2/entity/guid/{guid}/header": ["200"], + "DELETE /atlas/v2/entity/guid/{guid}/businessmetadata": ["204"], + "POST /atlas/v2/entity/guid/{guid}/businessmetadata": ["204"], + "DELETE /atlas/v2/entity/guid/{guid}/businessmetadata/{bmName}": ["204"], + "POST /atlas/v2/entity/guid/{guid}/businessmetadata/{bmName}": ["204"], + "GET /atlas/v2/entity/businessmetadata/import/template": ["200"], + "POST /atlas/v2/entity/businessmetadata/import": ["200"], + "DELETE /atlas/v2/entity/guid/{guid}/labels": ["204"], + "POST /atlas/v2/entity/guid/{guid}/labels": ["204"], + "PUT /atlas/v2/entity/guid/{guid}/labels": ["204"], + "DELETE /atlas/v2/entity/uniqueAttribute/type/{typeName}/labels": ["204"], + "POST /atlas/v2/entity/uniqueAttribute/type/{typeName}/labels": ["204"], + "PUT /atlas/v2/entity/uniqueAttribute/type/{typeName}/labels": ["204"], + "GET /atlas/v2/glossary": ["200"], + "POST /atlas/v2/glossary": ["200"], + "POST /atlas/v2/glossary/categories": ["200"], + "POST /atlas/v2/glossary/category": ["200"], + "GET /atlas/v2/glossary/category/{categoryGuid}": ["200"], + "PUT /atlas/v2/glossary/category/{categoryGuid}": ["200"], + "DELETE /atlas/v2/glossary/category/{categoryGuid}": ["204"], + "PUT /atlas/v2/glossary/category/{categoryGuid}/partial": ["200"], + "GET /atlas/v2/glossary/category/{categoryGuid}/related": ["200"], + "GET /atlas/v2/glossary/category/{categoryGuid}/terms": ["200"], + "POST /atlas/v2/glossary/term": ["200"], + "GET /atlas/v2/glossary/term/{termGuid}": ["200"], + "PUT /atlas/v2/glossary/term/{termGuid}": ["200"], + "DELETE /atlas/v2/glossary/term/{termGuid}": ["204"], + "PUT /atlas/v2/glossary/term/{termGuid}/partial": ["200"], + "POST /atlas/v2/glossary/terms": ["200"], + "GET /atlas/v2/glossary/terms/{termGuid}/assignedEntities": ["200"], + "POST /atlas/v2/glossary/terms/{termGuid}/assignedEntities": ["204"], + "PUT /atlas/v2/glossary/terms/{termGuid}/assignedEntities": ["204"], + "DELETE /atlas/v2/glossary/terms/{termGuid}/assignedEntities": ["204"], + "GET /atlas/v2/glossary/terms/{termGuid}/related": ["200"], + "GET /atlas/v2/glossary/{glossaryGuid}": ["200"], + "PUT /atlas/v2/glossary/{glossaryGuid}": ["200"], + "DELETE /atlas/v2/glossary/{glossaryGuid}": ["204"], + "GET /atlas/v2/glossary/{glossaryGuid}/categories": ["200"], + "GET /atlas/v2/glossary/{glossaryGuid}/categories/headers": ["200"], + "GET /atlas/v2/glossary/{glossaryGuid}/detailed": ["200"], + "PUT /atlas/v2/glossary/{glossaryGuid}/partial": ["200"], + "GET /atlas/v2/glossary/{glossaryGuid}/terms": ["200"], + "GET /atlas/v2/glossary/{glossaryGuid}/terms/headers": ["200"], + "GET /glossary/{glossaryGuid}/terms/import": ["202"], + "POST /glossary/{glossaryGuid}/terms/import": ["202"], + "GET /glossary/name/{glossaryName}/terms/import": ["202"], + "POST /glossary/name/{glossaryName}/terms/import": ["202"], + "GET /glossary/terms/import/{operationGuid}": ["200"], + "POST /glossary/{glossaryGuid}/terms/export": ["200"], + "GET /glossary/name/{glossaryName}/terms": ["200"], + "POST /search/query": ["200"], + "POST /search/suggest": ["200"], + "POST /browse": ["200"], + "POST /search/autocomplete": ["200"], + "GET /atlas/v2/lineage/{guid}": ["200"], + "GET /lineage/{guid}/next/": ["200"], + "GET /atlas/v2/lineage/uniqueAttribute/type/{typeName}": ["200"], + "POST /atlas/v2/relationship": ["200"], + "PUT /atlas/v2/relationship": ["200"], + "GET /atlas/v2/relationship/guid/{guid}": ["200"], + "DELETE /atlas/v2/relationship/guid/{guid}": ["204"], + "GET /atlas/v2/types/businessmetadatadef/guid/{guid}": ["200"], + "GET /atlas/v2/types/businessmetadatadef/name/{name}": ["200"], + "GET /atlas/v2/types/classificationdef/guid/{guid}": ["200"], + "GET /atlas/v2/types/classificationdef/name/{name}": ["200"], + "GET /atlas/v2/types/entitydef/guid/{guid}": ["200"], + "GET /atlas/v2/types/entitydef/name/{name}": ["200"], + "GET /atlas/v2/types/enumdef/guid/{guid}": ["200"], + "GET /atlas/v2/types/enumdef/name/{name}": ["200"], + "GET /atlas/v2/types/relationshipdef/guid/{guid}": ["200"], + "GET /atlas/v2/types/relationshipdef/name/{name}": ["200"], + "GET /atlas/v2/types/structdef/guid/{guid}": ["200"], + "GET /atlas/v2/types/structdef/name/{name}": ["200"], + "GET /atlas/v2/types/typedef/guid/{guid}": ["200"], + "GET /atlas/v2/types/typedef/name/{name}": ["200"], + "DELETE /atlas/v2/types/typedef/name/{name}": ["204"], + "GET /atlas/v2/types/typedefs": ["200"], + "POST /atlas/v2/types/typedefs": ["200"], + "PUT /atlas/v2/types/typedefs": ["200"], + "DELETE /atlas/v2/types/typedefs": ["204"], + "GET /atlas/v2/types/typedefs/headers": ["200"], + "GET /types/termtemplatedef/guid/{guid}": ["200"], + "GET /types/termtemplatedef/name/{name}": ["200"], + "POST /collections/{collection}/entity": ["200"], + "POST /collections/{collection}/entity/bulk": ["200"], + "POST /collections/{collection}/entity/moveHere": ["200"], +}; + +export function isUnexpected( + response: EntityCreateOrUpdate200Response | EntityCreateOrUpdateDefaultResponse, +): response is EntityCreateOrUpdateDefaultResponse; +export function isUnexpected( + response: EntityListByGuids200Response | EntityListByGuidsDefaultResponse, +): response is EntityListByGuidsDefaultResponse; +export function isUnexpected( + response: EntityCreateOrUpdateEntities200Response | EntityCreateOrUpdateEntitiesDefaultResponse, +): response is EntityCreateOrUpdateEntitiesDefaultResponse; +export function isUnexpected( + response: EntityDeleteByGuids200Response | EntityDeleteByGuidsDefaultResponse, +): response is EntityDeleteByGuidsDefaultResponse; +export function isUnexpected( + response: EntityAddClassification204Response | EntityAddClassificationDefaultResponse, +): response is EntityAddClassificationDefaultResponse; +export function isUnexpected( + response: EntityGetByGuid200Response | EntityGetByGuidDefaultResponse, +): response is EntityGetByGuidDefaultResponse; +export function isUnexpected( + response: + | EntityPartialUpdateEntityAttributeByGuid200Response + | EntityPartialUpdateEntityAttributeByGuidDefaultResponse, +): response is EntityPartialUpdateEntityAttributeByGuidDefaultResponse; +export function isUnexpected( + response: EntityDeleteByGuid200Response | EntityDeleteByGuidDefaultResponse, +): response is EntityDeleteByGuidDefaultResponse; +export function isUnexpected( + response: EntityGetClassification200Response | EntityGetClassificationDefaultResponse, +): response is EntityGetClassificationDefaultResponse; +export function isUnexpected( + response: EntityDeleteClassification204Response | EntityDeleteClassificationDefaultResponse, +): response is EntityDeleteClassificationDefaultResponse; +export function isUnexpected( + response: EntityGetClassifications200Response | EntityGetClassificationsDefaultResponse, +): response is EntityGetClassificationsDefaultResponse; +export function isUnexpected( + response: EntityAddClassifications204Response | EntityAddClassificationsDefaultResponse, +): response is EntityAddClassificationsDefaultResponse; +export function isUnexpected( + response: EntityUpdateClassifications204Response | EntityUpdateClassificationsDefaultResponse, +): response is EntityUpdateClassificationsDefaultResponse; +export function isUnexpected( + response: EntityGetByUniqueAttributes200Response | EntityGetByUniqueAttributesDefaultResponse, +): response is EntityGetByUniqueAttributesDefaultResponse; +export function isUnexpected( + response: + | EntityPartialUpdateEntityByUniqueAttributes200Response + | EntityPartialUpdateEntityByUniqueAttributesDefaultResponse, +): response is EntityPartialUpdateEntityByUniqueAttributesDefaultResponse; +export function isUnexpected( + response: EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributeDefaultResponse, +): response is EntityDeleteByUniqueAttributeDefaultResponse; +export function isUnexpected( + response: + | EntityDeleteClassificationByUniqueAttribute204Response + | EntityDeleteClassificationByUniqueAttributeDefaultResponse, +): response is EntityDeleteClassificationByUniqueAttributeDefaultResponse; +export function isUnexpected( + response: + | EntityAddClassificationsByUniqueAttribute204Response + | EntityAddClassificationsByUniqueAttributeDefaultResponse, +): response is EntityAddClassificationsByUniqueAttributeDefaultResponse; +export function isUnexpected( + response: + | EntityUpdateClassificationsByUniqueAttribute204Response + | EntityUpdateClassificationsByUniqueAttributeDefaultResponse, +): response is EntityUpdateClassificationsByUniqueAttributeDefaultResponse; +export function isUnexpected( + response: EntitySetClassifications200Response | EntitySetClassificationsDefaultResponse, +): response is EntitySetClassificationsDefaultResponse; +export function isUnexpected( + response: + | EntityGetEntitiesByUniqueAttributes200Response + | EntityGetEntitiesByUniqueAttributesDefaultResponse, +): response is EntityGetEntitiesByUniqueAttributesDefaultResponse; +export function isUnexpected( + response: EntityGetHeader200Response | EntityGetHeaderDefaultResponse, +): response is EntityGetHeaderDefaultResponse; +export function isUnexpected( + response: + | EntityGetSampleBusinessMetadataTemplate200Response + | EntityGetSampleBusinessMetadataTemplate400Response, +): response is EntityGetSampleBusinessMetadataTemplate400Response; +export function isUnexpected( + response: + | EntityImportBusinessMetadata200Response + | EntityImportBusinessMetadata400Response + | EntityImportBusinessMetadata409Response, +): response is EntityImportBusinessMetadata400Response; +export function isUnexpected( + response: GlossaryListGlossaries200Response | GlossaryListGlossariesDefaultResponse, +): response is GlossaryListGlossariesDefaultResponse; +export function isUnexpected( + response: GlossaryCreateGlossary200Response | GlossaryCreateGlossaryDefaultResponse, +): response is GlossaryCreateGlossaryDefaultResponse; +export function isUnexpected( + response: + | GlossaryCreateGlossaryCategories200Response + | GlossaryCreateGlossaryCategoriesDefaultResponse, +): response is GlossaryCreateGlossaryCategoriesDefaultResponse; +export function isUnexpected( + response: + | GlossaryCreateGlossaryCategory200Response + | GlossaryCreateGlossaryCategoryDefaultResponse, +): response is GlossaryCreateGlossaryCategoryDefaultResponse; +export function isUnexpected( + response: GlossaryGetGlossaryCategory200Response | GlossaryGetGlossaryCategoryDefaultResponse, +): response is GlossaryGetGlossaryCategoryDefaultResponse; +export function isUnexpected( + response: + | GlossaryUpdateGlossaryCategory200Response + | GlossaryUpdateGlossaryCategoryDefaultResponse, +): response is GlossaryUpdateGlossaryCategoryDefaultResponse; +export function isUnexpected( + response: + | GlossaryDeleteGlossaryCategory204Response + | GlossaryDeleteGlossaryCategoryDefaultResponse, +): response is GlossaryDeleteGlossaryCategoryDefaultResponse; +export function isUnexpected( + response: + | GlossaryPartialUpdateGlossaryCategory200Response + | GlossaryPartialUpdateGlossaryCategoryDefaultResponse, +): response is GlossaryPartialUpdateGlossaryCategoryDefaultResponse; +export function isUnexpected( + response: GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesDefaultResponse, +): response is GlossaryListRelatedCategoriesDefaultResponse; +export function isUnexpected( + response: GlossaryListCategoryTerms200Response | GlossaryListCategoryTermsDefaultResponse, +): response is GlossaryListCategoryTermsDefaultResponse; +export function isUnexpected( + response: GlossaryCreateGlossaryTerm200Response | GlossaryCreateGlossaryTermDefaultResponse, +): response is GlossaryCreateGlossaryTermDefaultResponse; +export function isUnexpected( + response: GlossaryGetGlossaryTerm200Response | GlossaryGetGlossaryTermDefaultResponse, +): response is GlossaryGetGlossaryTermDefaultResponse; +export function isUnexpected( + response: GlossaryUpdateGlossaryTerm200Response | GlossaryUpdateGlossaryTermDefaultResponse, +): response is GlossaryUpdateGlossaryTermDefaultResponse; +export function isUnexpected( + response: GlossaryDeleteGlossaryTerm204Response | GlossaryDeleteGlossaryTermDefaultResponse, +): response is GlossaryDeleteGlossaryTermDefaultResponse; +export function isUnexpected( + response: + | GlossaryPartialUpdateGlossaryTerm200Response + | GlossaryPartialUpdateGlossaryTermDefaultResponse, +): response is GlossaryPartialUpdateGlossaryTermDefaultResponse; +export function isUnexpected( + response: GlossaryCreateGlossaryTerms200Response | GlossaryCreateGlossaryTermsDefaultResponse, +): response is GlossaryCreateGlossaryTermsDefaultResponse; +export function isUnexpected( + response: + | GlossaryGetEntitiesAssignedWithTerm200Response + | GlossaryGetEntitiesAssignedWithTermDefaultResponse, +): response is GlossaryGetEntitiesAssignedWithTermDefaultResponse; +export function isUnexpected( + response: GlossaryAssignTermToEntities204Response | GlossaryAssignTermToEntitiesDefaultResponse, +): response is GlossaryAssignTermToEntitiesDefaultResponse; +export function isUnexpected( + response: + | GlossaryRemoveTermAssignmentFromEntities204Response + | GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse, +): response is GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse; +export function isUnexpected( + response: + | GlossaryDeleteTermAssignmentFromEntities204Response + | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse, +): response is GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse; +export function isUnexpected( + response: GlossaryListRelatedTerms200Response | GlossaryListRelatedTermsDefaultResponse, +): response is GlossaryListRelatedTermsDefaultResponse; +export function isUnexpected( + response: GlossaryGetGlossary200Response | GlossaryGetGlossaryDefaultResponse, +): response is GlossaryGetGlossaryDefaultResponse; +export function isUnexpected( + response: GlossaryUpdateGlossary200Response | GlossaryUpdateGlossaryDefaultResponse, +): response is GlossaryUpdateGlossaryDefaultResponse; +export function isUnexpected( + response: GlossaryDeleteGlossary204Response | GlossaryDeleteGlossaryDefaultResponse, +): response is GlossaryDeleteGlossaryDefaultResponse; +export function isUnexpected( + response: + | GlossaryListGlossaryCategories200Response + | GlossaryListGlossaryCategoriesDefaultResponse, +): response is GlossaryListGlossaryCategoriesDefaultResponse; +export function isUnexpected( + response: + | GlossaryListGlossaryCategoriesHeaders200Response + | GlossaryListGlossaryCategoriesHeadersDefaultResponse, +): response is GlossaryListGlossaryCategoriesHeadersDefaultResponse; +export function isUnexpected( + response: GlossaryGetDetailedGlossary200Response | GlossaryGetDetailedGlossaryDefaultResponse, +): response is GlossaryGetDetailedGlossaryDefaultResponse; +export function isUnexpected( + response: GlossaryPartialUpdateGlossary200Response | GlossaryPartialUpdateGlossaryDefaultResponse, +): response is GlossaryPartialUpdateGlossaryDefaultResponse; +export function isUnexpected( + response: GlossaryListGlossaryTerms200Response | GlossaryListGlossaryTermsDefaultResponse, +): response is GlossaryListGlossaryTermsDefaultResponse; +export function isUnexpected( + response: + | GlossaryListGlossaryTermHeaders200Response + | GlossaryListGlossaryTermHeadersDefaultResponse, +): response is GlossaryListGlossaryTermHeadersDefaultResponse; +export function isUnexpected( + response: + | GlossaryImportGlossaryTermsViaCsv202Response + | GlossaryImportGlossaryTermsViaCsvDefaultResponse, +): response is GlossaryImportGlossaryTermsViaCsvDefaultResponse; +export function isUnexpected( + response: + | GlossaryImportGlossaryTermsViaCsvByGlossaryName202Response + | GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse, +): response is GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse; +export function isUnexpected( + response: + | GlossaryGetImportCsvOperationStatus200Response + | GlossaryGetImportCsvOperationStatusDefaultResponse, +): response is GlossaryGetImportCsvOperationStatusDefaultResponse; +export function isUnexpected( + response: + | GlossaryExportGlossaryTermsAsCsv200Response + | GlossaryExportGlossaryTermsAsCsvDefaultResponse, +): response is GlossaryExportGlossaryTermsAsCsvDefaultResponse; +export function isUnexpected( + response: + | GlossaryListTermsByGlossaryName200Response + | GlossaryListTermsByGlossaryNameDefaultResponse, +): response is GlossaryListTermsByGlossaryNameDefaultResponse; +export function isUnexpected( + response: DiscoveryQuery200Response | DiscoveryQueryDefaultResponse, +): response is DiscoveryQueryDefaultResponse; +export function isUnexpected( + response: DiscoverySuggest200Response | DiscoverySuggestDefaultResponse, +): response is DiscoverySuggestDefaultResponse; +export function isUnexpected( + response: DiscoveryBrowse200Response | DiscoveryBrowseDefaultResponse, +): response is DiscoveryBrowseDefaultResponse; +export function isUnexpected( + response: DiscoveryAutoComplete200Response | DiscoveryAutoCompleteDefaultResponse, +): response is DiscoveryAutoCompleteDefaultResponse; +export function isUnexpected( + response: LineageGetLineageGraph200Response | LineageGetLineageGraphDefaultResponse, +): response is LineageGetLineageGraphDefaultResponse; +export function isUnexpected( + response: LineageNextPageLineage200Response | LineageNextPageLineageDefaultResponse, +): response is LineageNextPageLineageDefaultResponse; +export function isUnexpected( + response: + | LineageGetLineageByUniqueAttribute200Response + | LineageGetLineageByUniqueAttribute400Response + | LineageGetLineageByUniqueAttribute404Response, +): response is LineageGetLineageByUniqueAttribute400Response; +export function isUnexpected( + response: RelationshipCreate200Response | RelationshipCreateDefaultResponse, +): response is RelationshipCreateDefaultResponse; +export function isUnexpected( + response: RelationshipUpdate200Response | RelationshipUpdateDefaultResponse, +): response is RelationshipUpdateDefaultResponse; +export function isUnexpected( + response: RelationshipGet200Response | RelationshipGetDefaultResponse, +): response is RelationshipGetDefaultResponse; +export function isUnexpected( + response: RelationshipDelete204Response | RelationshipDeleteDefaultResponse, +): response is RelationshipDeleteDefaultResponse; +export function isUnexpected( + response: + | TypesGetBusinessMetadataDefByGuid200Response + | TypesGetBusinessMetadataDefByGuid404Response, +): response is TypesGetBusinessMetadataDefByGuid404Response; +export function isUnexpected( + response: + | TypesGetBusinessMetadataDefByName200Response + | TypesGetBusinessMetadataDefByName404Response, +): response is TypesGetBusinessMetadataDefByName404Response; +export function isUnexpected( + response: + | TypesGetClassificationDefByGuid200Response + | TypesGetClassificationDefByGuidDefaultResponse, +): response is TypesGetClassificationDefByGuidDefaultResponse; +export function isUnexpected( + response: + | TypesGetClassificationDefByName200Response + | TypesGetClassificationDefByNameDefaultResponse, +): response is TypesGetClassificationDefByNameDefaultResponse; +export function isUnexpected( + response: + | TypesGetEntityDefinitionByGuid200Response + | TypesGetEntityDefinitionByGuidDefaultResponse, +): response is TypesGetEntityDefinitionByGuidDefaultResponse; +export function isUnexpected( + response: + | TypesGetEntityDefinitionByName200Response + | TypesGetEntityDefinitionByNameDefaultResponse, +): response is TypesGetEntityDefinitionByNameDefaultResponse; +export function isUnexpected( + response: TypesGetEnumDefByGuid200Response | TypesGetEnumDefByGuidDefaultResponse, +): response is TypesGetEnumDefByGuidDefaultResponse; +export function isUnexpected( + response: TypesGetEnumDefByName200Response | TypesGetEnumDefByNameDefaultResponse, +): response is TypesGetEnumDefByNameDefaultResponse; +export function isUnexpected( + response: TypesGetRelationshipDefByGuid200Response | TypesGetRelationshipDefByGuidDefaultResponse, +): response is TypesGetRelationshipDefByGuidDefaultResponse; +export function isUnexpected( + response: TypesGetRelationshipDefByName200Response | TypesGetRelationshipDefByNameDefaultResponse, +): response is TypesGetRelationshipDefByNameDefaultResponse; +export function isUnexpected( + response: TypesGetStructDefByGuid200Response | TypesGetStructDefByGuidDefaultResponse, +): response is TypesGetStructDefByGuidDefaultResponse; +export function isUnexpected( + response: TypesGetStructDefByName200Response | TypesGetStructDefByNameDefaultResponse, +): response is TypesGetStructDefByNameDefaultResponse; +export function isUnexpected( + response: TypesGetTypeDefinitionByGuid200Response | TypesGetTypeDefinitionByGuidDefaultResponse, +): response is TypesGetTypeDefinitionByGuidDefaultResponse; +export function isUnexpected( + response: TypesGetTypeDefinitionByName200Response | TypesGetTypeDefinitionByNameDefaultResponse, +): response is TypesGetTypeDefinitionByNameDefaultResponse; +export function isUnexpected( + response: TypesDeleteTypeByName204Response | TypesDeleteTypeByNameDefaultResponse, +): response is TypesDeleteTypeByNameDefaultResponse; +export function isUnexpected( + response: TypesGetAllTypeDefinitions200Response | TypesGetAllTypeDefinitionsDefaultResponse, +): response is TypesGetAllTypeDefinitionsDefaultResponse; +export function isUnexpected( + response: TypesCreateTypeDefinitions200Response | TypesCreateTypeDefinitionsDefaultResponse, +): response is TypesCreateTypeDefinitionsDefaultResponse; +export function isUnexpected( + response: + | TypesUpdateAtlasTypeDefinitions200Response + | TypesUpdateAtlasTypeDefinitionsDefaultResponse, +): response is TypesUpdateAtlasTypeDefinitionsDefaultResponse; +export function isUnexpected( + response: TypesDeleteTypeDefinitions204Response | TypesDeleteTypeDefinitionsDefaultResponse, +): response is TypesDeleteTypeDefinitionsDefaultResponse; +export function isUnexpected( + response: + | TypesListTypeDefinitionHeaders200Response + | TypesListTypeDefinitionHeadersDefaultResponse, +): response is TypesListTypeDefinitionHeadersDefaultResponse; +export function isUnexpected( + response: TypesGetTermTemplateDefByGuid200Response | TypesGetTermTemplateDefByGuidDefaultResponse, +): response is TypesGetTermTemplateDefByGuidDefaultResponse; +export function isUnexpected( + response: TypesGetTermTemplateDefByName200Response | TypesGetTermTemplateDefByNameDefaultResponse, +): response is TypesGetTermTemplateDefByNameDefaultResponse; +export function isUnexpected( + response: CollectionCreateOrUpdate200Response | CollectionCreateOrUpdateDefaultResponse, +): response is CollectionCreateOrUpdateDefaultResponse; +export function isUnexpected( + response: CollectionCreateOrUpdateBulk200Response | CollectionCreateOrUpdateBulkDefaultResponse, +): response is CollectionCreateOrUpdateBulkDefaultResponse; +export function isUnexpected( + response: + | CollectionMoveEntitiesToCollection200Response + | CollectionMoveEntitiesToCollectionDefaultResponse, +): response is CollectionMoveEntitiesToCollectionDefaultResponse; +export function isUnexpected( + response: + | EntityCreateOrUpdate200Response + | EntityCreateOrUpdateDefaultResponse + | EntityListByGuids200Response + | EntityListByGuidsDefaultResponse + | EntityCreateOrUpdateEntities200Response + | EntityCreateOrUpdateEntitiesDefaultResponse + | EntityDeleteByGuids200Response + | EntityDeleteByGuidsDefaultResponse + | EntityAddClassification204Response + | EntityAddClassificationDefaultResponse + | EntityGetByGuid200Response + | EntityGetByGuidDefaultResponse + | EntityPartialUpdateEntityAttributeByGuid200Response + | EntityPartialUpdateEntityAttributeByGuidDefaultResponse + | EntityDeleteByGuid200Response + | EntityDeleteByGuidDefaultResponse + | EntityGetClassification200Response + | EntityGetClassificationDefaultResponse + | EntityDeleteClassification204Response + | EntityDeleteClassificationDefaultResponse + | EntityGetClassifications200Response + | EntityGetClassificationsDefaultResponse + | EntityAddClassifications204Response + | EntityAddClassificationsDefaultResponse + | EntityUpdateClassifications204Response + | EntityUpdateClassificationsDefaultResponse + | EntityGetByUniqueAttributes200Response + | EntityGetByUniqueAttributesDefaultResponse + | EntityPartialUpdateEntityByUniqueAttributes200Response + | EntityPartialUpdateEntityByUniqueAttributesDefaultResponse + | EntityDeleteByUniqueAttribute200Response + | EntityDeleteByUniqueAttributeDefaultResponse + | EntityDeleteClassificationByUniqueAttribute204Response + | EntityDeleteClassificationByUniqueAttributeDefaultResponse + | EntityAddClassificationsByUniqueAttribute204Response + | EntityAddClassificationsByUniqueAttributeDefaultResponse + | EntityUpdateClassificationsByUniqueAttribute204Response + | EntityUpdateClassificationsByUniqueAttributeDefaultResponse + | EntitySetClassifications200Response + | EntitySetClassificationsDefaultResponse + | EntityGetEntitiesByUniqueAttributes200Response + | EntityGetEntitiesByUniqueAttributesDefaultResponse + | EntityGetHeader200Response + | EntityGetHeaderDefaultResponse + | EntityGetSampleBusinessMetadataTemplate200Response + | EntityGetSampleBusinessMetadataTemplate400Response + | EntityImportBusinessMetadata200Response + | EntityImportBusinessMetadata400Response + | EntityImportBusinessMetadata409Response + | GlossaryListGlossaries200Response + | GlossaryListGlossariesDefaultResponse + | GlossaryCreateGlossary200Response + | GlossaryCreateGlossaryDefaultResponse + | GlossaryCreateGlossaryCategories200Response + | GlossaryCreateGlossaryCategoriesDefaultResponse + | GlossaryCreateGlossaryCategory200Response + | GlossaryCreateGlossaryCategoryDefaultResponse + | GlossaryGetGlossaryCategory200Response + | GlossaryGetGlossaryCategoryDefaultResponse + | GlossaryUpdateGlossaryCategory200Response + | GlossaryUpdateGlossaryCategoryDefaultResponse + | GlossaryDeleteGlossaryCategory204Response + | GlossaryDeleteGlossaryCategoryDefaultResponse + | GlossaryPartialUpdateGlossaryCategory200Response + | GlossaryPartialUpdateGlossaryCategoryDefaultResponse + | GlossaryListRelatedCategories200Response + | GlossaryListRelatedCategoriesDefaultResponse + | GlossaryListCategoryTerms200Response + | GlossaryListCategoryTermsDefaultResponse + | GlossaryCreateGlossaryTerm200Response + | GlossaryCreateGlossaryTermDefaultResponse + | GlossaryGetGlossaryTerm200Response + | GlossaryGetGlossaryTermDefaultResponse + | GlossaryUpdateGlossaryTerm200Response + | GlossaryUpdateGlossaryTermDefaultResponse + | GlossaryDeleteGlossaryTerm204Response + | GlossaryDeleteGlossaryTermDefaultResponse + | GlossaryPartialUpdateGlossaryTerm200Response + | GlossaryPartialUpdateGlossaryTermDefaultResponse + | GlossaryCreateGlossaryTerms200Response + | GlossaryCreateGlossaryTermsDefaultResponse + | GlossaryGetEntitiesAssignedWithTerm200Response + | GlossaryGetEntitiesAssignedWithTermDefaultResponse + | GlossaryAssignTermToEntities204Response + | GlossaryAssignTermToEntitiesDefaultResponse + | GlossaryRemoveTermAssignmentFromEntities204Response + | GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse + | GlossaryDeleteTermAssignmentFromEntities204Response + | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse + | GlossaryListRelatedTerms200Response + | GlossaryListRelatedTermsDefaultResponse + | GlossaryGetGlossary200Response + | GlossaryGetGlossaryDefaultResponse + | GlossaryUpdateGlossary200Response + | GlossaryUpdateGlossaryDefaultResponse + | GlossaryDeleteGlossary204Response + | GlossaryDeleteGlossaryDefaultResponse + | GlossaryListGlossaryCategories200Response + | GlossaryListGlossaryCategoriesDefaultResponse + | GlossaryListGlossaryCategoriesHeaders200Response + | GlossaryListGlossaryCategoriesHeadersDefaultResponse + | GlossaryGetDetailedGlossary200Response + | GlossaryGetDetailedGlossaryDefaultResponse + | GlossaryPartialUpdateGlossary200Response + | GlossaryPartialUpdateGlossaryDefaultResponse + | GlossaryListGlossaryTerms200Response + | GlossaryListGlossaryTermsDefaultResponse + | GlossaryListGlossaryTermHeaders200Response + | GlossaryListGlossaryTermHeadersDefaultResponse + | GlossaryImportGlossaryTermsViaCsv202Response + | GlossaryImportGlossaryTermsViaCsvDefaultResponse + | GlossaryImportGlossaryTermsViaCsvByGlossaryName202Response + | GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse + | GlossaryGetImportCsvOperationStatus200Response + | GlossaryGetImportCsvOperationStatusDefaultResponse + | GlossaryExportGlossaryTermsAsCsv200Response + | GlossaryExportGlossaryTermsAsCsvDefaultResponse + | GlossaryListTermsByGlossaryName200Response + | GlossaryListTermsByGlossaryNameDefaultResponse + | DiscoveryQuery200Response + | DiscoveryQueryDefaultResponse + | DiscoverySuggest200Response + | DiscoverySuggestDefaultResponse + | DiscoveryBrowse200Response + | DiscoveryBrowseDefaultResponse + | DiscoveryAutoComplete200Response + | DiscoveryAutoCompleteDefaultResponse + | LineageGetLineageGraph200Response + | LineageGetLineageGraphDefaultResponse + | LineageNextPageLineage200Response + | LineageNextPageLineageDefaultResponse + | LineageGetLineageByUniqueAttribute200Response + | LineageGetLineageByUniqueAttribute400Response + | LineageGetLineageByUniqueAttribute404Response + | RelationshipCreate200Response + | RelationshipCreateDefaultResponse + | RelationshipUpdate200Response + | RelationshipUpdateDefaultResponse + | RelationshipGet200Response + | RelationshipGetDefaultResponse + | RelationshipDelete204Response + | RelationshipDeleteDefaultResponse + | TypesGetBusinessMetadataDefByGuid200Response + | TypesGetBusinessMetadataDefByGuid404Response + | TypesGetBusinessMetadataDefByName200Response + | TypesGetBusinessMetadataDefByName404Response + | TypesGetClassificationDefByGuid200Response + | TypesGetClassificationDefByGuidDefaultResponse + | TypesGetClassificationDefByName200Response + | TypesGetClassificationDefByNameDefaultResponse + | TypesGetEntityDefinitionByGuid200Response + | TypesGetEntityDefinitionByGuidDefaultResponse + | TypesGetEntityDefinitionByName200Response + | TypesGetEntityDefinitionByNameDefaultResponse + | TypesGetEnumDefByGuid200Response + | TypesGetEnumDefByGuidDefaultResponse + | TypesGetEnumDefByName200Response + | TypesGetEnumDefByNameDefaultResponse + | TypesGetRelationshipDefByGuid200Response + | TypesGetRelationshipDefByGuidDefaultResponse + | TypesGetRelationshipDefByName200Response + | TypesGetRelationshipDefByNameDefaultResponse + | TypesGetStructDefByGuid200Response + | TypesGetStructDefByGuidDefaultResponse + | TypesGetStructDefByName200Response + | TypesGetStructDefByNameDefaultResponse + | TypesGetTypeDefinitionByGuid200Response + | TypesGetTypeDefinitionByGuidDefaultResponse + | TypesGetTypeDefinitionByName200Response + | TypesGetTypeDefinitionByNameDefaultResponse + | TypesDeleteTypeByName204Response + | TypesDeleteTypeByNameDefaultResponse + | TypesGetAllTypeDefinitions200Response + | TypesGetAllTypeDefinitionsDefaultResponse + | TypesCreateTypeDefinitions200Response + | TypesCreateTypeDefinitionsDefaultResponse + | TypesUpdateAtlasTypeDefinitions200Response + | TypesUpdateAtlasTypeDefinitionsDefaultResponse + | TypesDeleteTypeDefinitions204Response + | TypesDeleteTypeDefinitionsDefaultResponse + | TypesListTypeDefinitionHeaders200Response + | TypesListTypeDefinitionHeadersDefaultResponse + | TypesGetTermTemplateDefByGuid200Response + | TypesGetTermTemplateDefByGuidDefaultResponse + | TypesGetTermTemplateDefByName200Response + | TypesGetTermTemplateDefByNameDefaultResponse + | CollectionCreateOrUpdate200Response + | CollectionCreateOrUpdateDefaultResponse + | CollectionCreateOrUpdateBulk200Response + | CollectionCreateOrUpdateBulkDefaultResponse + | CollectionMoveEntitiesToCollection200Response + | CollectionMoveEntitiesToCollectionDefaultResponse, +): response is + | EntityCreateOrUpdateDefaultResponse + | EntityListByGuidsDefaultResponse + | EntityCreateOrUpdateEntitiesDefaultResponse + | EntityDeleteByGuidsDefaultResponse + | EntityAddClassificationDefaultResponse + | EntityGetByGuidDefaultResponse + | EntityPartialUpdateEntityAttributeByGuidDefaultResponse + | EntityDeleteByGuidDefaultResponse + | EntityGetClassificationDefaultResponse + | EntityDeleteClassificationDefaultResponse + | EntityGetClassificationsDefaultResponse + | EntityAddClassificationsDefaultResponse + | EntityUpdateClassificationsDefaultResponse + | EntityGetByUniqueAttributesDefaultResponse + | EntityPartialUpdateEntityByUniqueAttributesDefaultResponse + | EntityDeleteByUniqueAttributeDefaultResponse + | EntityDeleteClassificationByUniqueAttributeDefaultResponse + | EntityAddClassificationsByUniqueAttributeDefaultResponse + | EntityUpdateClassificationsByUniqueAttributeDefaultResponse + | EntitySetClassificationsDefaultResponse + | EntityGetEntitiesByUniqueAttributesDefaultResponse + | EntityGetHeaderDefaultResponse + | EntityGetSampleBusinessMetadataTemplate400Response + | EntityImportBusinessMetadata400Response + | EntityImportBusinessMetadata409Response + | GlossaryListGlossariesDefaultResponse + | GlossaryCreateGlossaryDefaultResponse + | GlossaryCreateGlossaryCategoriesDefaultResponse + | GlossaryCreateGlossaryCategoryDefaultResponse + | GlossaryGetGlossaryCategoryDefaultResponse + | GlossaryUpdateGlossaryCategoryDefaultResponse + | GlossaryDeleteGlossaryCategoryDefaultResponse + | GlossaryPartialUpdateGlossaryCategoryDefaultResponse + | GlossaryListRelatedCategoriesDefaultResponse + | GlossaryListCategoryTermsDefaultResponse + | GlossaryCreateGlossaryTermDefaultResponse + | GlossaryGetGlossaryTermDefaultResponse + | GlossaryUpdateGlossaryTermDefaultResponse + | GlossaryDeleteGlossaryTermDefaultResponse + | GlossaryPartialUpdateGlossaryTermDefaultResponse + | GlossaryCreateGlossaryTermsDefaultResponse + | GlossaryGetEntitiesAssignedWithTermDefaultResponse + | GlossaryAssignTermToEntitiesDefaultResponse + | GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse + | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse + | GlossaryListRelatedTermsDefaultResponse + | GlossaryGetGlossaryDefaultResponse + | GlossaryUpdateGlossaryDefaultResponse + | GlossaryDeleteGlossaryDefaultResponse + | GlossaryListGlossaryCategoriesDefaultResponse + | GlossaryListGlossaryCategoriesHeadersDefaultResponse + | GlossaryGetDetailedGlossaryDefaultResponse + | GlossaryPartialUpdateGlossaryDefaultResponse + | GlossaryListGlossaryTermsDefaultResponse + | GlossaryListGlossaryTermHeadersDefaultResponse + | GlossaryImportGlossaryTermsViaCsvDefaultResponse + | GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse + | GlossaryGetImportCsvOperationStatusDefaultResponse + | GlossaryExportGlossaryTermsAsCsvDefaultResponse + | GlossaryListTermsByGlossaryNameDefaultResponse + | DiscoveryQueryDefaultResponse + | DiscoverySuggestDefaultResponse + | DiscoveryBrowseDefaultResponse + | DiscoveryAutoCompleteDefaultResponse + | LineageGetLineageGraphDefaultResponse + | LineageNextPageLineageDefaultResponse + | LineageGetLineageByUniqueAttribute400Response + | LineageGetLineageByUniqueAttribute404Response + | RelationshipCreateDefaultResponse + | RelationshipUpdateDefaultResponse + | RelationshipGetDefaultResponse + | RelationshipDeleteDefaultResponse + | TypesGetBusinessMetadataDefByGuid404Response + | TypesGetBusinessMetadataDefByName404Response + | TypesGetClassificationDefByGuidDefaultResponse + | TypesGetClassificationDefByNameDefaultResponse + | TypesGetEntityDefinitionByGuidDefaultResponse + | TypesGetEntityDefinitionByNameDefaultResponse + | TypesGetEnumDefByGuidDefaultResponse + | TypesGetEnumDefByNameDefaultResponse + | TypesGetRelationshipDefByGuidDefaultResponse + | TypesGetRelationshipDefByNameDefaultResponse + | TypesGetStructDefByGuidDefaultResponse + | TypesGetStructDefByNameDefaultResponse + | TypesGetTypeDefinitionByGuidDefaultResponse + | TypesGetTypeDefinitionByNameDefaultResponse + | TypesDeleteTypeByNameDefaultResponse + | TypesGetAllTypeDefinitionsDefaultResponse + | TypesCreateTypeDefinitionsDefaultResponse + | TypesUpdateAtlasTypeDefinitionsDefaultResponse + | TypesDeleteTypeDefinitionsDefaultResponse + | TypesListTypeDefinitionHeadersDefaultResponse + | TypesGetTermTemplateDefByGuidDefaultResponse + | TypesGetTermTemplateDefByNameDefaultResponse + | CollectionCreateOrUpdateDefaultResponse + | CollectionCreateOrUpdateBulkDefaultResponse + | CollectionMoveEntitiesToCollectionDefaultResponse { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} + +function getParametrizedPathSuccess(method: string, path: string): string[] { + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: string[] = []; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( + pathParts[j] || "", + ); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/sdk/purview/purview-catalog-rest/src/logger.ts b/sdk/purview/purview-catalog-rest/src/logger.ts new file mode 100644 index 000000000000..de16b60a9f23 --- /dev/null +++ b/sdk/purview/purview-catalog-rest/src/logger.ts @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("purview-catalog"); diff --git a/sdk/purview/purview-catalog-rest/src/models.ts b/sdk/purview/purview-catalog-rest/src/models.ts index e34bcbe2bf2f..da7af626280a 100644 --- a/sdk/purview/purview-catalog-rest/src/models.ts +++ b/sdk/purview/purview-catalog-rest/src/models.ts @@ -1,11 +1,13 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +/** An instance of an entity along with extended info - like hive_table, hive_database. */ export interface AtlasEntityWithExtInfo extends AtlasEntityExtInfo { /** An instance of an entity - like hive_table, hive_database. */ entity?: AtlasEntity; } +/** An instance of an entity - like hive_table, hive_database. */ export interface AtlasEntity extends AtlasStruct { /** Business Attributes */ businessAttributes?: Record>; @@ -49,6 +51,7 @@ export interface AtlasEntity extends AtlasStruct { contacts?: Record>; } +/** An instance of a classification; it doesn't have an identity, this object exists only when associated with an entity. */ export interface AtlasClassification extends AtlasStruct { /** The GUID of the entity. */ entityGuid?: string; @@ -64,6 +67,7 @@ export interface AtlasClassification extends AtlasStruct { sourceDetails?: Record>; } +/** Captures time-boundary details */ export interface TimeBoundary { /** The end of the time boundary. */ endTime?: string; @@ -73,6 +77,7 @@ export interface TimeBoundary { timeZone?: string; } +/** Captures details of struct contents. Not instantiated directly, used only via AtlasEntity, AtlasClassification. */ export interface AtlasStruct { /** The attributes of the struct. */ attributes?: Record>; @@ -82,6 +87,7 @@ export interface AtlasStruct { lastModifiedTS?: string; } +/** The header for term assignment. */ export interface AtlasTermAssignmentHeader { /** The confidence of the term assignment. */ confidence?: number; @@ -112,6 +118,7 @@ export interface AtlasTermAssignmentHeader { termGuid?: string; } +/** ContactBasic */ export interface ContactBasic { /** Azure Active Directory object Id. */ id?: string; @@ -119,11 +126,13 @@ export interface ContactBasic { info?: string; } +/** An instance of an entity along with extended info - like hive_table, hive_database. */ export interface AtlasEntityExtInfo { /** The referred entities. */ referredEntities?: Record; } +/** An instance of an entity - like hive_table, hive_database. */ export interface AtlasEntityHeader extends AtlasStruct { /** An array of classification names. */ classificationNames?: Array; @@ -145,11 +154,13 @@ export interface AtlasEntityHeader extends AtlasStruct { status?: "ACTIVE" | "DELETED"; } +/** An instance of an entity along with extended info - like hive_table, hive_database. */ export interface AtlasEntitiesWithExtInfo extends AtlasEntityExtInfo { /** An array of entities. */ entities?: Array; } +/** The request for classification association. */ export interface ClassificationAssociateRequest { /** An instance of a classification; it doesn't have an identity, this object exists only when associated with an entity. */ classification?: AtlasClassification; @@ -157,11 +168,13 @@ export interface ClassificationAssociateRequest { entityGuids?: Array; } +/** An instance of an entity header map. */ export interface AtlasEntityHeaders { /** The description of the guid header map, */ guidHeaderMap?: Record; } +/** The glossary object. */ export interface AtlasGlossary extends AtlasGlossaryBaseObject { /** An array of categories. */ categories?: Array; @@ -173,6 +186,7 @@ export interface AtlasGlossary extends AtlasGlossaryBaseObject { usage?: string; } +/** The header of the related category. */ export interface AtlasRelatedCategoryHeader { /** The GUID of the category. */ categoryGuid?: string; @@ -186,6 +200,7 @@ export interface AtlasRelatedCategoryHeader { relationGuid?: string; } +/** The header of the related term. */ export interface AtlasRelatedTermHeader { /** The description of the related term. */ description?: string; @@ -205,6 +220,7 @@ export interface AtlasRelatedTermHeader { termGuid?: string; } +/** The glossary base object. */ export interface AtlasGlossaryBaseObject extends AtlasBaseModelObject { /** An array of classifications. */ classifications?: Array; @@ -220,11 +236,13 @@ export interface AtlasGlossaryBaseObject extends AtlasBaseModelObject { lastModifiedTS?: string; } +/** The base model object. */ export interface AtlasBaseModelObject { /** The GUID of the object. */ guid?: string; } +/** The glossary category. */ export interface AtlasGlossaryCategory extends AtlasGlossaryBaseObject { /** The glossary header with basic information. */ anchor?: AtlasGlossaryHeader; @@ -236,6 +254,7 @@ export interface AtlasGlossaryCategory extends AtlasGlossaryBaseObject { terms?: Array; } +/** The glossary header with basic information. */ export interface AtlasGlossaryHeader { /** The display text. */ displayText?: string; @@ -245,6 +264,7 @@ export interface AtlasGlossaryHeader { relationGuid?: string; } +/** The glossary term. */ export interface AtlasGlossaryTerm extends AtlasGlossaryBaseObject { /** The abbreviation of the term. */ abbreviation?: string; @@ -306,6 +326,7 @@ export interface AtlasGlossaryTerm extends AtlasGlossaryBaseObject { validValuesFor?: Array; } +/** ResourceLink */ export interface ResourceLink { /** Display name for url. */ displayName?: string; @@ -313,6 +334,7 @@ export interface ResourceLink { url?: string; } +/** Reference to an object-instance of AtlasEntity type used in relationship attribute values */ export interface AtlasRelatedObjectId extends AtlasObjectId { /** The display text. */ displayText?: string; @@ -327,6 +349,7 @@ export interface AtlasRelatedObjectId extends AtlasObjectId { relationshipStatus?: "ACTIVE" | "DELETED"; } +/** Reference to an object-instance of an Atlas type - like entity. */ export interface AtlasObjectId { /** The GUID of the object. */ guid?: string; @@ -336,6 +359,7 @@ export interface AtlasObjectId { uniqueAttributes?: Record>; } +/** The basic information for term categorization. */ export interface AtlasTermCategorizationHeader { /** The GUID of the category. */ categoryGuid?: string; @@ -349,6 +373,7 @@ export interface AtlasTermCategorizationHeader { status?: "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; } +/** The extended information of glossary. */ export interface AtlasGlossaryExtInfo extends AtlasGlossary { /** The glossary category information. */ categoryInfo?: Record; @@ -356,6 +381,7 @@ export interface AtlasGlossaryExtInfo extends AtlasGlossary { termInfo?: Record; } +/** The search query of advanced search request. */ export interface SearchRequest { /** The keywords applied to all searchable fields. */ keywords?: string; @@ -369,6 +395,7 @@ export interface SearchRequest { taxonomySetting?: SearchRequestTaxonomySetting; } +/** The content of a search facet result item. */ export interface SearchFacetItem { /** The count of the facet item. */ count?: number; @@ -384,6 +411,7 @@ export interface SearchRequestTaxonomySetting { facet?: SearchFacetItem; } +/** The query of suggest request. */ export interface SuggestRequest { /** The keywords applied to all fields that support suggest operation. It must be at least 1 character, and no more than 100 characters. In the index schema we defined a default suggester which lists all the supported fields and specifies a search mode. */ keywords?: string; @@ -393,6 +421,7 @@ export interface SuggestRequest { filter?: Record; } +/** The criteria of browse request. */ export interface BrowseRequest { /** The entity type to browse as the root level entry point. */ entityType?: string; @@ -404,6 +433,7 @@ export interface BrowseRequest { offset?: number; } +/** The query of autocomplete request. */ export interface AutoCompleteRequest { /** The keywords applied to all fields that support autocomplete operation. It must be at least 1 character, and no more than 100 characters. */ keywords?: string; @@ -413,6 +443,7 @@ export interface AutoCompleteRequest { filter?: Record; } +/** Atlas relationship instance. */ export interface AtlasRelationship extends AtlasStruct { /** The created time of the record. */ createTime?: number; @@ -440,13 +471,16 @@ export interface AtlasRelationship extends AtlasStruct { version?: number; } +/** class that captures details of a struct-type. */ export interface AtlasBusinessMetadataDef extends AtlasStructDef {} +/** class that captures details of a struct-type. */ export interface AtlasStructDef extends AtlasBaseTypeDef { /** An array of attribute definitions. */ attributeDefs?: Array; } +/** class that captures details of a struct-attribute. */ export interface AtlasAttributeDef { /** single-valued attribute or multi-valued attribute. */ cardinality?: "SINGLE" | "LIST" | "SET"; @@ -476,6 +510,7 @@ export interface AtlasAttributeDef { valuesMinCount?: number; } +/** class that captures details of a constraint. */ export interface AtlasConstraintDef { /** The parameters of the constraint definition. */ params?: Record>; @@ -483,6 +518,7 @@ export interface AtlasConstraintDef { type?: string; } +/** Base class that captures common-attributes for all Atlas types. */ export interface AtlasBaseTypeDef { /** The enum of type category. */ category?: @@ -524,6 +560,7 @@ export interface AtlasBaseTypeDef { lastModifiedTS?: string; } +/** The date format. */ export interface DateFormat { /** An array of available locales. */ availableLocales?: Array; @@ -544,6 +581,7 @@ export interface DateFormat { timeZone?: TimeZone; } +/** The number format. */ export interface NumberFormat { /** The number format. */ availableLocales?: Array; @@ -583,6 +621,7 @@ export interface NumberFormat { | "UNNECESSARY"; } +/** The timezone information. */ export interface TimeZone { /** The value of the daylight saving time. */ dstSavings?: number; @@ -598,6 +637,7 @@ export interface TimeZone { rawOffset?: number; } +/** class that captures details of a classification-type. */ export interface AtlasClassificationDef extends AtlasStructDef { /** * Specifying a list of entityType names in the classificationDef, ensures that classifications can @@ -618,6 +658,7 @@ export interface AtlasClassificationDef extends AtlasStructDef { superTypes?: Array; } +/** class that captures details of a entity-type. */ export interface AtlasEntityDef extends AtlasStructDef { /** An array of sub types. */ subTypes?: Array; @@ -627,6 +668,10 @@ export interface AtlasEntityDef extends AtlasStructDef { relationshipAttributeDefs?: Array; } +/** + * The relationshipEndDef represents an end of the relationship. The end of the relationship is defined by a type, an + * attribute name, cardinality and whether it is the container end of the relationship. + */ export interface AtlasRelationshipAttributeDef extends AtlasAttributeDef { /** Determines if it is a legacy attribute. */ isLegacyAttribute?: boolean; @@ -634,6 +679,7 @@ export interface AtlasRelationshipAttributeDef extends AtlasAttributeDef { relationshipTypeName?: string; } +/** class that captures details of an enum-type. */ export interface AtlasEnumDef extends AtlasBaseTypeDef { /** The default value. */ defaultValue?: string; @@ -641,6 +687,7 @@ export interface AtlasEnumDef extends AtlasBaseTypeDef { elementDefs?: Array; } +/** class that captures details of an enum-element. */ export interface AtlasEnumElementDef { /** The description of the enum element definition. */ description?: string; @@ -650,6 +697,37 @@ export interface AtlasEnumElementDef { value?: string; } +/** + * AtlasRelationshipDef is a TypeDef that defines a relationship. + *

+ * As with other typeDefs the AtlasRelationshipDef has a name. Once created the RelationshipDef has a guid. + * The name and the guid are the 2 ways that the RelationshipDef is identified. + *

+ * RelationshipDefs have 2 ends, each of which specify cardinality, an EntityDef type name and name and optionally + * whether the end is a container. + *

+ * RelationshipDefs can have AttributeDefs - though only primitive types are allowed.
+ * RelationshipDefs have a relationshipCategory specifying the UML type of relationship required
+ * The way EntityDefs and RelationshipDefs are intended to be used is that EntityDefs will define AttributeDefs these AttributeDefs + * will not specify an EntityDef type name as their types. + *

+ * RelationshipDefs introduce new attributes to the entity instances. For example + *

+ * EntityDef A might have attributes attr1,attr2,attr3
+ * EntityDef B might have attributes attr4,attr5,attr6
+ * RelationshipDef AtoB might define 2 ends
+ * + *

+ *    end1:  type A, name attr7
+ *    end2:  type B, name attr8  
+ * + *

+ * When an instance of EntityDef A is created, it will have attributes attr1,attr2,attr3,attr7
+ * When an instance of EntityDef B is created, it will have attributes attr4,attr5,attr6,attr8 + *

+ * In this way relationshipDefs can be authored separately from entityDefs and can inject relationship attributes into + * the entity instances + */ export interface AtlasRelationshipDef extends AtlasStructDef { /** * The relationshipEndDef represents an end of the relationship. The end of the relationship is defined by a type, an @@ -677,6 +755,10 @@ export interface AtlasRelationshipDef extends AtlasStructDef { relationshipLabel?: string; } +/** + * The relationshipEndDef represents an end of the relationship. The end of the relationship is defined by a type, an + * attribute name, cardinality and whether it is the container end of the relationship. + */ export interface AtlasRelationshipEndDef { /** single-valued attribute or multi-valued attribute. */ cardinality?: "SINGLE" | "LIST" | "SET"; @@ -692,8 +774,10 @@ export interface AtlasRelationshipEndDef { type?: string; } +/** The definitions of type. */ export interface AtlasTypeDef extends AtlasBaseTypeDef, AtlasExtraTypeDef {} +/** Extra properties for a type. */ export interface AtlasExtraTypeDef { /** * Specifying a list of entityType names in the classificationDef, ensures that classifications can @@ -746,6 +830,7 @@ export interface AtlasExtraTypeDef { attributeDefs?: Array; } +/** The definitions of types. */ export interface AtlasTypesDef { /** businessMetadataDefs */ businessMetadataDefs?: Array; @@ -763,6 +848,7 @@ export interface AtlasTypesDef { termTemplateDefs?: Array; } +/** term template definition for glossary term. */ export interface TermTemplateDef extends AtlasStructDef {} export interface MoveEntitiesRequest { diff --git a/sdk/purview/purview-catalog-rest/src/outputModels.ts b/sdk/purview/purview-catalog-rest/src/outputModels.ts index 71c58fa936bd..7400df79227b 100644 --- a/sdk/purview/purview-catalog-rest/src/outputModels.ts +++ b/sdk/purview/purview-catalog-rest/src/outputModels.ts @@ -1,11 +1,13 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +/** An instance of an entity along with extended info - like hive_table, hive_database. */ export interface AtlasEntityWithExtInfoOutput extends AtlasEntityExtInfoOutput { /** An instance of an entity - like hive_table, hive_database. */ entity?: AtlasEntityOutput; } +/** An instance of an entity - like hive_table, hive_database. */ export interface AtlasEntityOutput extends AtlasStructOutput { /** Business Attributes */ businessAttributes?: Record>; @@ -49,6 +51,7 @@ export interface AtlasEntityOutput extends AtlasStructOutput { contacts?: Record>; } +/** An instance of a classification; it doesn't have an identity, this object exists only when associated with an entity. */ export interface AtlasClassificationOutput extends AtlasStructOutput { /** The GUID of the entity. */ entityGuid?: string; @@ -64,6 +67,7 @@ export interface AtlasClassificationOutput extends AtlasStructOutput { sourceDetails?: Record>; } +/** Captures time-boundary details */ export interface TimeBoundaryOutput { /** The end of the time boundary. */ endTime?: string; @@ -73,6 +77,7 @@ export interface TimeBoundaryOutput { timeZone?: string; } +/** Captures details of struct contents. Not instantiated directly, used only via AtlasEntity, AtlasClassification. */ export interface AtlasStructOutput { /** The attributes of the struct. */ attributes?: Record>; @@ -82,6 +87,7 @@ export interface AtlasStructOutput { lastModifiedTS?: string; } +/** The header for term assignment. */ export interface AtlasTermAssignmentHeaderOutput { /** The confidence of the term assignment. */ confidence?: number; @@ -112,6 +118,7 @@ export interface AtlasTermAssignmentHeaderOutput { termGuid?: string; } +/** ContactBasic */ export interface ContactBasicOutput { /** Azure Active Directory object Id. */ id?: string; @@ -119,11 +126,13 @@ export interface ContactBasicOutput { info?: string; } +/** An instance of an entity along with extended info - like hive_table, hive_database. */ export interface AtlasEntityExtInfoOutput { /** The referred entities. */ referredEntities?: Record; } +/** The mutation response of entity. */ export interface EntityMutationResponseOutput { /** A map of GUID assignments with entities. */ guidAssignments?: Record; @@ -133,6 +142,7 @@ export interface EntityMutationResponseOutput { partialUpdatedEntities?: Array; } +/** An instance of an entity - like hive_table, hive_database. */ export interface AtlasEntityHeaderOutput extends AtlasStructOutput { /** An array of classification names. */ classificationNames?: Array; @@ -154,6 +164,7 @@ export interface AtlasEntityHeaderOutput extends AtlasStructOutput { status?: "ACTIVE" | "DELETED"; } +/** An error response from the service */ export interface ErrorResponseOutput { /** The request ID. */ requestId?: string; @@ -163,13 +174,16 @@ export interface ErrorResponseOutput { errorMessage?: string; } +/** An instance of an entity along with extended info - like hive_table, hive_database. */ export interface AtlasEntitiesWithExtInfoOutput extends AtlasEntityExtInfoOutput { /** An array of entities. */ entities?: Array; } +/** REST serialization friendly list. */ export interface AtlasClassificationsOutput extends PListOutput {} +/** Paginated-list, for returning search results. */ export interface PListOutput { /** An array of objects. */ list?: Array>; @@ -185,6 +199,7 @@ export interface PListOutput { totalCount?: number; } +/** example */ export interface BulkImportResponseOutput { /** failed importInfoList */ failedImportInfoList?: Array; @@ -192,6 +207,7 @@ export interface BulkImportResponseOutput { successImportInfoList?: Array; } +/** ImportInfo */ export interface ImportInfoOutput { /** childObjectName */ childObjectName?: string; @@ -203,6 +219,7 @@ export interface ImportInfoOutput { remarks?: string; } +/** The glossary object. */ export interface AtlasGlossaryOutput extends AtlasGlossaryBaseObjectOutput { /** An array of categories. */ categories?: Array; @@ -214,6 +231,7 @@ export interface AtlasGlossaryOutput extends AtlasGlossaryBaseObjectOutput { usage?: string; } +/** The header of the related category. */ export interface AtlasRelatedCategoryHeaderOutput { /** The GUID of the category. */ categoryGuid?: string; @@ -227,6 +245,7 @@ export interface AtlasRelatedCategoryHeaderOutput { relationGuid?: string; } +/** The header of the related term. */ export interface AtlasRelatedTermHeaderOutput { /** The description of the related term. */ description?: string; @@ -246,6 +265,7 @@ export interface AtlasRelatedTermHeaderOutput { termGuid?: string; } +/** The glossary base object. */ export interface AtlasGlossaryBaseObjectOutput extends AtlasBaseModelObjectOutput { /** An array of classifications. */ classifications?: Array; @@ -261,11 +281,13 @@ export interface AtlasGlossaryBaseObjectOutput extends AtlasBaseModelObjectOutpu lastModifiedTS?: string; } +/** The base model object. */ export interface AtlasBaseModelObjectOutput { /** The GUID of the object. */ guid?: string; } +/** The glossary category. */ export interface AtlasGlossaryCategoryOutput extends AtlasGlossaryBaseObjectOutput { /** The glossary header with basic information. */ anchor?: AtlasGlossaryHeaderOutput; @@ -277,6 +299,7 @@ export interface AtlasGlossaryCategoryOutput extends AtlasGlossaryBaseObjectOutp terms?: Array; } +/** The glossary header with basic information. */ export interface AtlasGlossaryHeaderOutput { /** The display text. */ displayText?: string; @@ -286,6 +309,7 @@ export interface AtlasGlossaryHeaderOutput { relationGuid?: string; } +/** The glossary term. */ export interface AtlasGlossaryTermOutput extends AtlasGlossaryBaseObjectOutput { /** The abbreviation of the term. */ abbreviation?: string; @@ -347,6 +371,7 @@ export interface AtlasGlossaryTermOutput extends AtlasGlossaryBaseObjectOutput { validValuesFor?: Array; } +/** ResourceLink */ export interface ResourceLinkOutput { /** Display name for url. */ displayName?: string; @@ -354,6 +379,7 @@ export interface ResourceLinkOutput { url?: string; } +/** Reference to an object-instance of AtlasEntity type used in relationship attribute values */ export interface AtlasRelatedObjectIdOutput extends AtlasObjectIdOutput { /** The display text. */ displayText?: string; @@ -368,6 +394,7 @@ export interface AtlasRelatedObjectIdOutput extends AtlasObjectIdOutput { relationshipStatus?: "ACTIVE" | "DELETED"; } +/** Reference to an object-instance of an Atlas type - like entity. */ export interface AtlasObjectIdOutput { /** The GUID of the object. */ guid?: string; @@ -377,6 +404,7 @@ export interface AtlasObjectIdOutput { uniqueAttributes?: Record>; } +/** The basic information for term categorization. */ export interface AtlasTermCategorizationHeaderOutput { /** The GUID of the category. */ categoryGuid?: string; @@ -390,6 +418,7 @@ export interface AtlasTermCategorizationHeaderOutput { status?: "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; } +/** The extended information of glossary. */ export interface AtlasGlossaryExtInfoOutput extends AtlasGlossaryOutput { /** The glossary category information. */ categoryInfo?: Record; @@ -397,6 +426,7 @@ export interface AtlasGlossaryExtInfoOutput extends AtlasGlossaryOutput { termInfo?: Record; } +/** The status of import csv operation */ export interface ImportCSVOperationOutput { /** guid string */ id?: string; @@ -424,6 +454,7 @@ export interface ImportCSVOperationErrorOutput { errorMessage?: string; } +/** The result of the search result. */ export interface SearchResultOutput { /** The total number of search results (not the number of documents in a single page). */ "@search.count"?: number; @@ -432,6 +463,7 @@ export interface SearchResultOutput { value?: Array; } +/** A facet list that consists of index fields assetType ,classification, contactId, and label. When the facet is specified in the request, the value of the facet is returned as an element of @search.facets. */ export interface SearchFacetResultValueOutput { assetType?: Array; classification?: Array; @@ -442,6 +474,7 @@ export interface SearchFacetResultValueOutput { term?: Array; } +/** The content of a search facet result item. */ export interface SearchFacetItemValueOutput { /** The count of the facet item. */ count?: number; @@ -449,6 +482,7 @@ export interface SearchFacetItemValueOutput { value?: string; } +/** The value item of the search result. */ export interface SearchResultValueOutput { /** The search score calculated by the search engine. The results are ordered by search score by default. */ "@search.score"?: number; @@ -480,6 +514,7 @@ export interface SearchResultValueOutput { assetType?: Array; } +/** A highlight list that consists of index fields id ,qualifiedName, name, description, entityType. When the keyword appears in those fields, the value of the field, attached with emphasis mark, is returned as an element of @search.highlights. */ export interface SearchHighlightsOutput { id?: Array; qualifiedName?: Array; @@ -488,6 +523,7 @@ export interface SearchHighlightsOutput { entityType?: Array; } +/** The context. */ export interface TermSearchResultValueOutput { /** The name of the term. */ name?: string; @@ -497,6 +533,7 @@ export interface TermSearchResultValueOutput { guid?: string; } +/** The contact in the search and suggest result. */ export interface ContactSearchResultValueOutput { /** The GUID of the contact. */ id?: string; @@ -506,10 +543,12 @@ export interface ContactSearchResultValueOutput { contactType?: string; } +/** The result item of the search suggest. */ export interface SuggestResultOutput { value?: Array; } +/** The value item of the search suggest. */ export interface SuggestResultValueOutput { /** The search score calculated by the search engine. The results are ordered by search score by default. */ "@search.score"?: number; @@ -539,12 +578,14 @@ export interface SuggestResultValueOutput { assetType?: Array; } +/** The result item of the browse request. */ export interface BrowseResultOutput { /** The total number of browse results. */ "@search.count"?: number; value?: Array; } +/** The value item of the browse result. */ export interface BrowseResultValueOutput { /** The type name of the record. */ entityType?: string; @@ -562,6 +603,7 @@ export interface BrowseResultValueOutput { qualifiedName?: string; } +/** The value item of the browse owner. */ export interface BrowseResultOwnerOutput { /** The GUID of the owner. */ id?: string; @@ -573,10 +615,12 @@ export interface BrowseResultOwnerOutput { contactType?: string; } +/** The result of the autocomplete request. */ export interface AutoCompleteResultOutput { value?: Array; } +/** The value item of the autocomplete suggest. */ export interface AutoCompleteResultValueOutput { /** The completed term or phrase. */ text?: string; @@ -584,6 +628,7 @@ export interface AutoCompleteResultValueOutput { queryPlusText?: string; } +/** The lineage information. */ export interface AtlasLineageInfoOutput { /** The GUID of the base entity. */ baseEntityGuid?: string; @@ -607,6 +652,7 @@ export interface AtlasLineageInfoOutput { relations?: Array; } +/** The lineage parents relation with GUID of the parent entity and to child entity. */ export interface ParentRelationOutput { /** The GUID of child entity. */ childEntityId?: string; @@ -616,6 +662,7 @@ export interface ParentRelationOutput { parentEntityId?: string; } +/** The lineage relation with GUID of the from and to entity. */ export interface LineageRelationOutput { /** The GUID of from-entity. */ fromEntityId?: string; @@ -625,6 +672,7 @@ export interface LineageRelationOutput { toEntityId?: string; } +/** Atlas relationship instance. */ export interface AtlasRelationshipOutput extends AtlasStructOutput { /** The created time of the record. */ createTime?: number; @@ -652,6 +700,7 @@ export interface AtlasRelationshipOutput extends AtlasStructOutput { version?: number; } +/** The relationship with extended information. */ export interface AtlasRelationshipWithExtInfoOutput { /** The referred entity header. */ referredEntities?: Record; @@ -659,13 +708,16 @@ export interface AtlasRelationshipWithExtInfoOutput { relationship?: AtlasRelationshipOutput; } +/** class that captures details of a struct-type. */ export interface AtlasBusinessMetadataDefOutput extends AtlasStructDefOutput {} +/** class that captures details of a struct-type. */ export interface AtlasStructDefOutput extends AtlasBaseTypeDefOutput { /** An array of attribute definitions. */ attributeDefs?: Array; } +/** class that captures details of a struct-attribute. */ export interface AtlasAttributeDefOutput { /** single-valued attribute or multi-valued attribute. */ cardinality?: "SINGLE" | "LIST" | "SET"; @@ -695,6 +747,7 @@ export interface AtlasAttributeDefOutput { valuesMinCount?: number; } +/** class that captures details of a constraint. */ export interface AtlasConstraintDefOutput { /** The parameters of the constraint definition. */ params?: Record>; @@ -702,6 +755,7 @@ export interface AtlasConstraintDefOutput { type?: string; } +/** Base class that captures common-attributes for all Atlas types. */ export interface AtlasBaseTypeDefOutput { /** The enum of type category. */ category?: @@ -743,6 +797,7 @@ export interface AtlasBaseTypeDefOutput { lastModifiedTS?: string; } +/** The date format. */ export interface DateFormatOutput { /** An array of available locales. */ availableLocales?: Array; @@ -763,6 +818,7 @@ export interface DateFormatOutput { timeZone?: TimeZoneOutput; } +/** The number format. */ export interface NumberFormatOutput { /** The number format. */ availableLocales?: Array; @@ -802,6 +858,7 @@ export interface NumberFormatOutput { | "UNNECESSARY"; } +/** The timezone information. */ export interface TimeZoneOutput { /** The value of the daylight saving time. */ dstSavings?: number; @@ -817,6 +874,7 @@ export interface TimeZoneOutput { rawOffset?: number; } +/** class that captures details of a classification-type. */ export interface AtlasClassificationDefOutput extends AtlasStructDefOutput { /** * Specifying a list of entityType names in the classificationDef, ensures that classifications can @@ -837,6 +895,7 @@ export interface AtlasClassificationDefOutput extends AtlasStructDefOutput { superTypes?: Array; } +/** class that captures details of a entity-type. */ export interface AtlasEntityDefOutput extends AtlasStructDefOutput { /** An array of sub types. */ subTypes?: Array; @@ -846,6 +905,10 @@ export interface AtlasEntityDefOutput extends AtlasStructDefOutput { relationshipAttributeDefs?: Array; } +/** + * The relationshipEndDef represents an end of the relationship. The end of the relationship is defined by a type, an + * attribute name, cardinality and whether it is the container end of the relationship. + */ export interface AtlasRelationshipAttributeDefOutput extends AtlasAttributeDefOutput { /** Determines if it is a legacy attribute. */ isLegacyAttribute?: boolean; @@ -853,6 +916,7 @@ export interface AtlasRelationshipAttributeDefOutput extends AtlasAttributeDefOu relationshipTypeName?: string; } +/** class that captures details of an enum-type. */ export interface AtlasEnumDefOutput extends AtlasBaseTypeDefOutput { /** The default value. */ defaultValue?: string; @@ -860,6 +924,7 @@ export interface AtlasEnumDefOutput extends AtlasBaseTypeDefOutput { elementDefs?: Array; } +/** class that captures details of an enum-element. */ export interface AtlasEnumElementDefOutput { /** The description of the enum element definition. */ description?: string; @@ -869,6 +934,37 @@ export interface AtlasEnumElementDefOutput { value?: string; } +/** + * AtlasRelationshipDef is a TypeDef that defines a relationship. + *

+ * As with other typeDefs the AtlasRelationshipDef has a name. Once created the RelationshipDef has a guid. + * The name and the guid are the 2 ways that the RelationshipDef is identified. + *

+ * RelationshipDefs have 2 ends, each of which specify cardinality, an EntityDef type name and name and optionally + * whether the end is a container. + *

+ * RelationshipDefs can have AttributeDefs - though only primitive types are allowed.
+ * RelationshipDefs have a relationshipCategory specifying the UML type of relationship required
+ * The way EntityDefs and RelationshipDefs are intended to be used is that EntityDefs will define AttributeDefs these AttributeDefs + * will not specify an EntityDef type name as their types. + *

+ * RelationshipDefs introduce new attributes to the entity instances. For example + *

+ * EntityDef A might have attributes attr1,attr2,attr3
+ * EntityDef B might have attributes attr4,attr5,attr6
+ * RelationshipDef AtoB might define 2 ends
+ * + *

+ *    end1:  type A, name attr7
+ *    end2:  type B, name attr8  
+ * + *

+ * When an instance of EntityDef A is created, it will have attributes attr1,attr2,attr3,attr7
+ * When an instance of EntityDef B is created, it will have attributes attr4,attr5,attr6,attr8 + *

+ * In this way relationshipDefs can be authored separately from entityDefs and can inject relationship attributes into + * the entity instances + */ export interface AtlasRelationshipDefOutput extends AtlasStructDefOutput { /** * The relationshipEndDef represents an end of the relationship. The end of the relationship is defined by a type, an @@ -896,6 +992,10 @@ export interface AtlasRelationshipDefOutput extends AtlasStructDefOutput { relationshipLabel?: string; } +/** + * The relationshipEndDef represents an end of the relationship. The end of the relationship is defined by a type, an + * attribute name, cardinality and whether it is the container end of the relationship. + */ export interface AtlasRelationshipEndDefOutput { /** single-valued attribute or multi-valued attribute. */ cardinality?: "SINGLE" | "LIST" | "SET"; @@ -911,8 +1011,10 @@ export interface AtlasRelationshipEndDefOutput { type?: string; } +/** The definitions of type. */ export interface AtlasTypeDefOutput extends AtlasBaseTypeDefOutput, AtlasExtraTypeDefOutput {} +/** Extra properties for a type. */ export interface AtlasExtraTypeDefOutput { /** * Specifying a list of entityType names in the classificationDef, ensures that classifications can @@ -965,6 +1067,7 @@ export interface AtlasExtraTypeDefOutput { attributeDefs?: Array; } +/** The definitions of types. */ export interface AtlasTypesDefOutput { /** businessMetadataDefs */ businessMetadataDefs?: Array; @@ -982,8 +1085,10 @@ export interface AtlasTypesDefOutput { termTemplateDefs?: Array; } +/** term template definition for glossary term. */ export interface TermTemplateDefOutput extends AtlasStructDefOutput {} +/** The basic information of the type definition. */ export interface AtlasTypeDefHeaderOutput { /** The enum of type category. */ category?: diff --git a/sdk/purview/purview-catalog-rest/src/parameters.ts b/sdk/purview/purview-catalog-rest/src/parameters.ts index d84bff6caf4e..16304c9a4103 100644 --- a/sdk/purview/purview-catalog-rest/src/parameters.ts +++ b/sdk/purview/purview-catalog-rest/src/parameters.ts @@ -36,14 +36,14 @@ export type EntityCreateOrUpdateParameters = EntityCreateOrUpdateMediaTypesParam RequestParameters; export interface EntityListByGuidsQueryParamProperties { - /** An array of GUIDs of entities to list. */ - guid: Array; + /** An array of GUIDs of entities to list. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ + guid: string; /** Whether to return minimal information for referred entities. */ minExtInfo?: boolean; /** Whether to ignore relationship attributes. */ ignoreRelationships?: boolean; - /** An array of the relationship types need to be excluded from the response. */ - excludeRelationshipTypes?: Array; + /** An array of the relationship types need to be excluded from the response. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ + excludeRelationshipTypes?: string; } export interface EntityListByGuidsQueryParam { @@ -67,8 +67,8 @@ export type EntityCreateOrUpdateEntitiesParameters = EntityCreateOrUpdateEntitie RequestParameters; export interface EntityDeleteByGuidsQueryParamProperties { - /** An array of GUIDs of entities to delete. */ - guid: Array; + /** An array of GUIDs of entities to delete. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ + guid: string; } export interface EntityDeleteByGuidsQueryParam { @@ -387,7 +387,7 @@ export interface EntityImportBusinessMetadataFormBody { * * Value may contain any sequence of octets */ - uploadedInputStream?: string | Uint8Array; + uploadedInputStream?: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; } export interface EntityImportBusinessMetadataMediaTypesParam { @@ -677,8 +677,8 @@ export type GlossaryCreateGlossaryTermParameters = GlossaryCreateGlossaryTermQue export interface GlossaryGetGlossaryTermQueryParamProperties { /** Whether include term hierarchy */ includeTermHierarchy?: boolean; - /** An array of relationship types which need to be excluded. */ - excludeRelationshipTypes?: Array; + /** An array of relationship types which need to be excluded. This parameter needs to be formatted as multi collection, we provide buildMultiCollection from serializeHelper.ts to help, you will probably need to set skipUrlEncoding as true when sending the request */ + excludeRelationshipTypes?: string; } export interface GlossaryGetGlossaryTermQueryParam { @@ -966,7 +966,7 @@ export interface GlossaryImportGlossaryTermsViaCsvFormBody { * * Value may contain any sequence of octets */ - file: string | Uint8Array; + file: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; } export interface GlossaryImportGlossaryTermsViaCsvQueryParamProperties { @@ -999,7 +999,7 @@ export interface GlossaryImportGlossaryTermsViaCsvByGlossaryNameFormBody { * * Value may contain any sequence of octets */ - file: string | Uint8Array; + file: string | Uint8Array | ReadableStream | NodeJS.ReadableStream; } export interface GlossaryImportGlossaryTermsViaCsvByGlossaryNameQueryParamProperties { diff --git a/sdk/purview/purview-catalog-rest/src/pollingHelper.ts b/sdk/purview/purview-catalog-rest/src/pollingHelper.ts index 914ab5dd8d01..a2668fc5d9c7 100644 --- a/sdk/purview/purview-catalog-rest/src/pollingHelper.ts +++ b/sdk/purview/purview-catalog-rest/src/pollingHelper.ts @@ -2,14 +2,81 @@ // Licensed under the MIT License. import type { Client, HttpResponse } from "@azure-rest/core-client"; +import type { AbortSignalLike } from "@azure/abort-controller"; import type { - LongRunningOperation, - LroEngineOptions, - LroResponse, - PollerLike, - PollOperationState, + CancelOnProgress, + CreateHttpPollerOptions, + RunningOperation, + OperationResponse, + OperationState, } from "@azure/core-lro"; -import { LroEngine } from "@azure/core-lro"; +import { createHttpPoller } from "@azure/core-lro"; + +/** + * A simple poller that can be used to poll a long running operation. + */ +export interface SimplePollerLike, TResult> { + /** + * Returns true if the poller has finished polling. + */ + isDone(): boolean; + /** + * Returns the state of the operation. + */ + getOperationState(): TState; + /** + * Returns the result value of the operation, + * regardless of the state of the poller. + * It can return undefined or an incomplete form of the final TResult value + * depending on the implementation. + */ + getResult(): TResult | undefined; + /** + * Returns a promise that will resolve once a single polling request finishes. + * It does this by calling the update method of the Poller's operation. + */ + poll(options?: { abortSignal?: AbortSignalLike }): Promise; + /** + * Returns a promise that will resolve once the underlying operation is completed. + */ + pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise; + /** + * Invokes the provided callback after each polling is completed, + * sending the current state of the poller's operation. + * + * It returns a method that can be used to stop receiving updates on the given callback function. + */ + onProgress(callback: (state: TState) => void): CancelOnProgress; + + /** + * Returns a promise that could be used for serialized version of the poller's operation + * by invoking the operation's serialize method. + */ + serialize(): Promise; + + /** + * Wait the poller to be submitted. + */ + submitted(): Promise; + + /** + * Returns a string representation of the poller's operation. Similar to serialize but returns a string. + * @deprecated Use serialize() instead. + */ + toString(): string; + + /** + * Stops the poller from continuing to poll. Please note this will only stop the client-side polling + * @deprecated Use abortSignal to stop polling instead. + */ + stopPolling(): void; + + /** + * Returns true if the poller is stopped. + * @deprecated Use abortSignal status to track this instead. + */ + isStopped(): boolean; +} /** * Helper function that builds a Poller object to help polling a long running operation. @@ -18,39 +85,100 @@ import { LroEngine } from "@azure/core-lro"; * @param options - Options to set a resume state or custom polling interval. * @returns - A poller object to poll for operation state updates and eventually get the final response. */ -export function getLongRunningPoller( +export async function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {}, -): PollerLike, TResult> { - const poller: LongRunningOperation = { - requestMethod: initialResponse.request.method, - requestPath: initialResponse.request.url, + options: CreateHttpPollerOptions> = {}, +): Promise, TResult>> { + const abortController = new AbortController(); + const poller: RunningOperation = { sendInitialRequest: async () => { // In the case of Rest Clients we are building the LRO poller object from a response that's the reason // we are not triggering the initial request here, just extracting the information from the // response we were provided. return getLroResponse(initialResponse); }, - sendPollRequest: async (path) => { + sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => { // This is the callback that is going to be called to poll the service // to get the latest status. We use the client provided and the polling path // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location // depending on the lro pattern that the service implements. If non is provided we default to the initial path. - const response = await client.pathUnchecked(path ?? initialResponse.request.url).get(); - return getLroResponse(response as TResult); + function abortListener(): void { + abortController.abort(); + } + const inputAbortSignal = pollOptions?.abortSignal; + const abortSignal = abortController.signal; + if (inputAbortSignal?.aborted) { + abortController.abort(); + } else if (!abortSignal.aborted) { + inputAbortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client + .pathUnchecked(path ?? initialResponse.request.url) + .get({ abortSignal }); + } finally { + inputAbortSignal?.removeEventListener("abort", abortListener); + } + const lroResponse = getLroResponse(response as TResult); + lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url; + return lroResponse; }, }; - return new LroEngine(poller, options); + options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; + const httpPoller = createHttpPoller(poller, options); + const simplePoller: SimplePollerLike, TResult> = { + isDone() { + return httpPoller.isDone; + }, + isStopped() { + return abortController.signal.aborted; + }, + getOperationState() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return httpPoller.operationState; + }, + getResult() { + return httpPoller.result; + }, + toString() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return JSON.stringify({ + state: httpPoller.operationState, + }); + }, + stopPolling() { + abortController.abort(); + }, + onProgress: httpPoller.onProgress, + poll: httpPoller.poll, + pollUntilDone: httpPoller.pollUntilDone, + serialize: httpPoller.serialize, + submitted: httpPoller.submitted, + }; + return simplePoller; } /** - * Converts a Rest Client response to a response that the LRO engine knows about + * Converts a Rest Client response to a response that the LRO implementation understands * @param response - a rest client http response - * @returns - An LRO response that the LRO engine can work with + * @returns - An LRO response that the LRO implementation understands */ -function getLroResponse(response: TResult): LroResponse { +function getLroResponse( + response: TResult, +): OperationResponse { if (Number.isNaN(response.status)) { throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`); } diff --git a/sdk/purview/purview-catalog-rest/src/purviewCatalog.ts b/sdk/purview/purview-catalog-rest/src/purviewCatalog.ts index e7f6615609b8..79817d77c256 100644 --- a/sdk/purview/purview-catalog-rest/src/purviewCatalog.ts +++ b/sdk/purview/purview-catalog-rest/src/purviewCatalog.ts @@ -3,24 +3,29 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; +import { logger } from "./logger.js"; import type { TokenCredential } from "@azure/core-auth"; import type { PurviewCatalogClient } from "./clientDefinitions.js"; +/** The optional parameters for the client */ +export interface PurviewCatalogClientOptions extends ClientOptions { + /** The api version option of the client */ + apiVersion?: string; +} + +/** + * Initialize a new instance of `PurviewCatalogClient` + * @param endpoint - The catalog endpoint of your Purview account. Example: https://\{accountName\}.purview.azure.com + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters + */ export default function createClient( - Endpoint: string, + endpoint: string, credentials: TokenCredential, - options: ClientOptions = {}, + { apiVersion = "2022-03-01-preview", ...options }: PurviewCatalogClientOptions = {}, ): PurviewCatalogClient { - const baseUrl = options.baseUrl ?? `${Endpoint}/catalog/api`; - options.apiVersion = options.apiVersion ?? "2022-03-01-preview"; - options = { - ...options, - credentials: { - scopes: ["https://purview.azure.net/.default"], - }, - }; - - const userAgentInfo = `azsdk-js-purview-catalog-rest/1.0.0-beta.5`; + const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpoint}/catalog/api`; + const userAgentInfo = `azsdk-js-purview-catalog-rest/1.0.0-beta.6`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` @@ -30,9 +35,31 @@ export default function createClient( userAgentOptions: { userAgentPrefix, }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + credentials: { + scopes: ["https://purview.azure.net/.default"], + }, }; + const client = getClient(endpointUrl, credentials, options) as PurviewCatalogClient; + + client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + client.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version") && apiVersion) { + req.url = `${req.url}${ + Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } - const client = getClient(baseUrl, credentials, options) as PurviewCatalogClient; + return next(req); + }, + }); return client; } diff --git a/sdk/purview/purview-catalog-rest/src/responses.ts b/sdk/purview/purview-catalog-rest/src/responses.ts index c630ef69242b..e727fefc46ef 100644 --- a/sdk/purview/purview-catalog-rest/src/responses.ts +++ b/sdk/purview/purview-catalog-rest/src/responses.ts @@ -53,8 +53,8 @@ export interface EntityCreateOrUpdate200Response extends HttpResponse { * Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. * Map and array of collections are not well supported. E.g., array>, array>. */ -export interface EntityCreateOrUpdatedefaultResponse extends HttpResponse { - status: "500"; +export interface EntityCreateOrUpdateDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -65,8 +65,8 @@ export interface EntityListByGuids200Response extends HttpResponse { } /** List entities in bulk identified by its GUIDs. */ -export interface EntityListByGuidsdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityListByGuidsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -85,8 +85,8 @@ export interface EntityCreateOrUpdateEntities200Response extends HttpResponse { * Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. * Map and array of collections are not well supported. E.g., array>, array>. */ -export interface EntityCreateOrUpdateEntitiesdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityCreateOrUpdateEntitiesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -97,20 +97,19 @@ export interface EntityDeleteByGuids200Response extends HttpResponse { } /** Delete a list of entities in bulk identified by their GUIDs or unique attributes. */ -export interface EntityDeleteByGuidsdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityDeleteByGuidsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Associate a classification to multiple entities in bulk. */ export interface EntityAddClassification204Response extends HttpResponse { status: "204"; - body: Record; } /** Associate a classification to multiple entities in bulk. */ -export interface EntityAddClassificationdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityAddClassificationDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -121,8 +120,8 @@ export interface EntityGetByGuid200Response extends HttpResponse { } /** Get complete definition of an entity given its GUID. */ -export interface EntityGetByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface EntityGetByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -143,8 +142,8 @@ export interface EntityPartialUpdateEntityAttributeByGuid200Response extends Htt * It does not support updating complex types like arrays, and maps. * Null updates are not possible. */ -export interface EntityPartialUpdateEntityAttributeByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface EntityPartialUpdateEntityAttributeByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -155,8 +154,8 @@ export interface EntityDeleteByGuid200Response extends HttpResponse { } /** Delete an entity identified by its GUID. */ -export interface EntityDeleteByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface EntityDeleteByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -167,20 +166,19 @@ export interface EntityGetClassification200Response extends HttpResponse { } /** List classifications for a given entity represented by a GUID. */ -export interface EntityGetClassificationdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityGetClassificationDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete a given classification from an existing entity represented by a GUID. */ export interface EntityDeleteClassification204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete a given classification from an existing entity represented by a GUID. */ -export interface EntityDeleteClassificationdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityDeleteClassificationDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -191,32 +189,30 @@ export interface EntityGetClassifications200Response extends HttpResponse { } /** List classifications for a given entity represented by a GUID. */ -export interface EntityGetClassificationsdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityGetClassificationsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Add classifications to an existing entity represented by a GUID. */ export interface EntityAddClassifications204Response extends HttpResponse { status: "204"; - body: Record; } /** Add classifications to an existing entity represented by a GUID. */ -export interface EntityAddClassificationsdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityAddClassificationsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Update classifications to an existing entity represented by a guid. */ export interface EntityUpdateClassifications204Response extends HttpResponse { status: "204"; - body: Record; } /** Update classifications to an existing entity represented by a guid. */ -export interface EntityUpdateClassificationsdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityUpdateClassificationsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -241,8 +237,8 @@ export interface EntityGetByUniqueAttributes200Response extends HttpResponse { * The REST request would look something like this: * GET /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ -export interface EntityGetByUniqueAttributesdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityGetByUniqueAttributesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -271,8 +267,8 @@ export interface EntityPartialUpdateEntityByUniqueAttributes200Response extends * The REST request would look something like this: * PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ -export interface EntityPartialUpdateEntityByUniqueAttributesdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityPartialUpdateEntityByUniqueAttributesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -297,44 +293,41 @@ export interface EntityDeleteByUniqueAttribute200Response extends HttpResponse { * The REST request would look something like this: * DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ -export interface EntityDeleteByUniqueAttributedefaultResponse extends HttpResponse { - status: "500"; +export interface EntityDeleteByUniqueAttributeDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete a given classification from an entity identified by its type and unique attributes. */ export interface EntityDeleteClassificationByUniqueAttribute204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete a given classification from an entity identified by its type and unique attributes. */ -export interface EntityDeleteClassificationByUniqueAttributedefaultResponse extends HttpResponse { - status: "500"; +export interface EntityDeleteClassificationByUniqueAttributeDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Add classification to the entity identified by its type and unique attributes. */ export interface EntityAddClassificationsByUniqueAttribute204Response extends HttpResponse { status: "204"; - body: Record; } /** Add classification to the entity identified by its type and unique attributes. */ -export interface EntityAddClassificationsByUniqueAttributedefaultResponse extends HttpResponse { - status: "500"; +export interface EntityAddClassificationsByUniqueAttributeDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Update classification on an entity identified by its type and unique attributes. */ export interface EntityUpdateClassificationsByUniqueAttribute204Response extends HttpResponse { status: "204"; - body: Record; } /** Update classification on an entity identified by its type and unique attributes. */ -export interface EntityUpdateClassificationsByUniqueAttributedefaultResponse extends HttpResponse { - status: "500"; +export interface EntityUpdateClassificationsByUniqueAttributeDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -345,8 +338,8 @@ export interface EntitySetClassifications200Response extends HttpResponse { } /** Set classifications on entities in bulk. */ -export interface EntitySetClassificationsdefaultResponse extends HttpResponse { - status: "500"; +export interface EntitySetClassificationsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -381,8 +374,8 @@ export interface EntityGetEntitiesByUniqueAttributes200Response extends HttpResp * * GET /v2/entity/bulk/uniqueAttribute/type/hive_db?attr_0:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1 */ -export interface EntityGetEntitiesByUniqueAttributesdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityGetEntitiesByUniqueAttributesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -393,33 +386,29 @@ export interface EntityGetHeader200Response extends HttpResponse { } /** Get entity header given its GUID. */ -export interface EntityGetHeaderdefaultResponse extends HttpResponse { - status: "500"; +export interface EntityGetHeaderDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Remove business metadata from an entity. */ export interface EntityDeleteBusinessMetadata204Response extends HttpResponse { status: "204"; - body: Record; } /** Add business metadata to an entity. */ export interface EntityAddOrUpdateBusinessMetadata204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete business metadata attributes from an entity. */ export interface EntityDeleteBusinessMetadataAttributes204Response extends HttpResponse { status: "204"; - body: Record; } /** Add or update business metadata attributes */ export interface EntityAddOrUpdateBusinessMetadataAttributes204Response extends HttpResponse { status: "204"; - body: Record; } /** Get the sample Template for uploading/creating bulk BusinessMetaData */ @@ -432,7 +421,6 @@ export interface EntityGetSampleBusinessMetadataTemplate200Response extends Http /** Get the sample Template for uploading/creating bulk BusinessMetaData */ export interface EntityGetSampleBusinessMetadataTemplate400Response extends HttpResponse { status: "400"; - body: Record; } /** Upload the file for creating Business Metadata in BULK */ @@ -444,49 +432,41 @@ export interface EntityImportBusinessMetadata200Response extends HttpResponse { /** Upload the file for creating Business Metadata in BULK */ export interface EntityImportBusinessMetadata400Response extends HttpResponse { status: "400"; - body: Record; } /** Upload the file for creating Business Metadata in BULK */ export interface EntityImportBusinessMetadata409Response extends HttpResponse { status: "409"; - body: Record; } /** delete given labels to a given entity */ export interface EntityDeleteLabels204Response extends HttpResponse { status: "204"; - body: Record; } /** Set labels to a given entity */ export interface EntitySetLabels204Response extends HttpResponse { status: "204"; - body: Record; } /** add given labels to a given entity */ export interface EntityAddLabel204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete given labels to a given entity identified by its type and unique attributes, if labels is null/empty, no labels will be removed. If any labels in labels set are non-existing labels, they will be ignored, only existing labels will be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:=. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ export interface EntityDeleteLabelsByUniqueAttribute204Response extends HttpResponse { status: "204"; - body: Record; } /** Set labels to a given entity identified by its type and unique attributes, if labels is null/empty, existing labels will all be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:=. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: POST /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ export interface EntitySetLabelsByUniqueAttribute204Response extends HttpResponse { status: "204"; - body: Record; } /** Add given labels to a given entity identified by its type and unique attributes, if labels is null/empty, no labels will be added. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:=. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ export interface EntityAddLabelsByUniqueAttribute204Response extends HttpResponse { status: "204"; - body: Record; } /** Get all glossaries registered with Atlas. */ @@ -496,8 +476,8 @@ export interface GlossaryListGlossaries200Response extends HttpResponse { } /** Get all glossaries registered with Atlas. */ -export interface GlossaryListGlossariesdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryListGlossariesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -508,8 +488,8 @@ export interface GlossaryCreateGlossary200Response extends HttpResponse { } /** Create a glossary. */ -export interface GlossaryCreateGlossarydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryCreateGlossaryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -520,8 +500,8 @@ export interface GlossaryCreateGlossaryCategories200Response extends HttpRespons } /** Create glossary category in bulk. */ -export interface GlossaryCreateGlossaryCategoriesdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryCreateGlossaryCategoriesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -532,8 +512,8 @@ export interface GlossaryCreateGlossaryCategory200Response extends HttpResponse } /** Create a glossary category. */ -export interface GlossaryCreateGlossaryCategorydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryCreateGlossaryCategoryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -544,8 +524,8 @@ export interface GlossaryGetGlossaryCategory200Response extends HttpResponse { } /** Get specific glossary category by its GUID. */ -export interface GlossaryGetGlossaryCategorydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryGetGlossaryCategoryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -556,20 +536,19 @@ export interface GlossaryUpdateGlossaryCategory200Response extends HttpResponse } /** Update the given glossary category by its GUID. */ -export interface GlossaryUpdateGlossaryCategorydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryUpdateGlossaryCategoryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete a glossary category. */ export interface GlossaryDeleteGlossaryCategory204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete a glossary category. */ -export interface GlossaryDeleteGlossaryCategorydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryDeleteGlossaryCategoryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -580,8 +559,8 @@ export interface GlossaryPartialUpdateGlossaryCategory200Response extends HttpRe } /** Update the glossary category partially. */ -export interface GlossaryPartialUpdateGlossaryCategorydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryPartialUpdateGlossaryCategoryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -592,8 +571,8 @@ export interface GlossaryListRelatedCategories200Response extends HttpResponse { } /** Get all related categories (parent and children). Limit, offset, and sort parameters are currently not being enabled and won't work even they are passed. */ -export interface GlossaryListRelatedCategoriesdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryListRelatedCategoriesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -604,8 +583,8 @@ export interface GlossaryListCategoryTerms200Response extends HttpResponse { } /** Get all terms associated with the specific category. */ -export interface GlossaryListCategoryTermsdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryListCategoryTermsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -616,8 +595,8 @@ export interface GlossaryCreateGlossaryTerm200Response extends HttpResponse { } /** Create a glossary term. */ -export interface GlossaryCreateGlossaryTermdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryCreateGlossaryTermDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -628,8 +607,8 @@ export interface GlossaryGetGlossaryTerm200Response extends HttpResponse { } /** Get a specific glossary term by its GUID. */ -export interface GlossaryGetGlossaryTermdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryGetGlossaryTermDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -640,20 +619,19 @@ export interface GlossaryUpdateGlossaryTerm200Response extends HttpResponse { } /** Update the given glossary term by its GUID. */ -export interface GlossaryUpdateGlossaryTermdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryUpdateGlossaryTermDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete a glossary term. */ export interface GlossaryDeleteGlossaryTerm204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete a glossary term. */ -export interface GlossaryDeleteGlossaryTermdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryDeleteGlossaryTermDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -664,8 +642,8 @@ export interface GlossaryPartialUpdateGlossaryTerm200Response extends HttpRespon } /** Update the glossary term partially. */ -export interface GlossaryPartialUpdateGlossaryTermdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryPartialUpdateGlossaryTermDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -676,8 +654,8 @@ export interface GlossaryCreateGlossaryTerms200Response extends HttpResponse { } /** Create glossary terms in bulk. */ -export interface GlossaryCreateGlossaryTermsdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryCreateGlossaryTermsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -688,44 +666,41 @@ export interface GlossaryGetEntitiesAssignedWithTerm200Response extends HttpResp } /** Get all related objects assigned with the specified term. */ -export interface GlossaryGetEntitiesAssignedWithTermdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryGetEntitiesAssignedWithTermDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Assign the given term to the provided list of related objects. */ export interface GlossaryAssignTermToEntities204Response extends HttpResponse { status: "204"; - body: Record; } /** Assign the given term to the provided list of related objects. */ -export interface GlossaryAssignTermToEntitiesdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryAssignTermToEntitiesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete the term assignment for the given list of related objects. */ export interface GlossaryRemoveTermAssignmentFromEntities204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete the term assignment for the given list of related objects. */ -export interface GlossaryRemoveTermAssignmentFromEntitiesdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryRemoveTermAssignmentFromEntitiesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete the term assignment for the given list of related objects. */ export interface GlossaryDeleteTermAssignmentFromEntities204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete the term assignment for the given list of related objects. */ -export interface GlossaryDeleteTermAssignmentFromEntitiesdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -736,8 +711,8 @@ export interface GlossaryListRelatedTerms200Response extends HttpResponse { } /** Get all related terms for a specific term by its GUID. Limit, offset, and sort parameters are currently not being enabled and won't work even they are passed. */ -export interface GlossaryListRelatedTermsdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryListRelatedTermsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -748,8 +723,8 @@ export interface GlossaryGetGlossary200Response extends HttpResponse { } /** Get a specific Glossary by its GUID. */ -export interface GlossaryGetGlossarydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryGetGlossaryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -760,20 +735,19 @@ export interface GlossaryUpdateGlossary200Response extends HttpResponse { } /** Update the given glossary. */ -export interface GlossaryUpdateGlossarydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryUpdateGlossaryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete a glossary. */ export interface GlossaryDeleteGlossary204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete a glossary. */ -export interface GlossaryDeleteGlossarydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryDeleteGlossaryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -784,8 +758,8 @@ export interface GlossaryListGlossaryCategories200Response extends HttpResponse } /** Get the categories belonging to a specific glossary. */ -export interface GlossaryListGlossaryCategoriesdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryListGlossaryCategoriesDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -796,8 +770,8 @@ export interface GlossaryListGlossaryCategoriesHeaders200Response extends HttpRe } /** Get the category headers belonging to a specific glossary. */ -export interface GlossaryListGlossaryCategoriesHeadersdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryListGlossaryCategoriesHeadersDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -808,8 +782,8 @@ export interface GlossaryGetDetailedGlossary200Response extends HttpResponse { } /** Get a specific glossary with detailed information. */ -export interface GlossaryGetDetailedGlossarydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryGetDetailedGlossaryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -820,8 +794,8 @@ export interface GlossaryPartialUpdateGlossary200Response extends HttpResponse { } /** Update the glossary partially. Some properties such as qualifiedName are not allowed to be updated. */ -export interface GlossaryPartialUpdateGlossarydefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryPartialUpdateGlossaryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -832,8 +806,8 @@ export interface GlossaryListGlossaryTerms200Response extends HttpResponse { } /** Get terms belonging to a specific glossary. */ -export interface GlossaryListGlossaryTermsdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryListGlossaryTermsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -844,8 +818,8 @@ export interface GlossaryListGlossaryTermHeaders200Response extends HttpResponse } /** Get term headers belonging to a specific glossary. */ -export interface GlossaryListGlossaryTermHeadersdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryListGlossaryTermHeadersDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -856,8 +830,8 @@ export interface GlossaryImportGlossaryTermsViaCsv202Response extends HttpRespon } /** Import Glossary Terms from local csv file */ -export interface GlossaryImportGlossaryTermsViaCsvdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryImportGlossaryTermsViaCsvDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -868,9 +842,9 @@ export interface GlossaryImportGlossaryTermsViaCsvByGlossaryName202Response exte } /** Import Glossary Terms from local csv file by glossaryName */ -export interface GlossaryImportGlossaryTermsViaCsvByGlossaryNamedefaultResponse +export interface GlossaryImportGlossaryTermsViaCsvByGlossaryNameDefaultResponse extends HttpResponse { - status: "500"; + status: string; body: ErrorResponseOutput; } @@ -881,8 +855,8 @@ export interface GlossaryGetImportCsvOperationStatus200Response extends HttpResp } /** Get the status of import csv operation */ -export interface GlossaryGetImportCsvOperationStatusdefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryGetImportCsvOperationStatusDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -894,9 +868,9 @@ export interface GlossaryExportGlossaryTermsAsCsv200Response extends HttpRespons } /** Export Glossary Terms as csv file */ -export interface GlossaryExportGlossaryTermsAsCsvdefaultResponse extends HttpResponse { - status: "500"; - body: Record; +export interface GlossaryExportGlossaryTermsAsCsvDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; } /** Get terms by glossary name. */ @@ -906,8 +880,8 @@ export interface GlossaryListTermsByGlossaryName200Response extends HttpResponse } /** Get terms by glossary name. */ -export interface GlossaryListTermsByGlossaryNamedefaultResponse extends HttpResponse { - status: "500"; +export interface GlossaryListTermsByGlossaryNameDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -918,8 +892,8 @@ export interface DiscoveryQuery200Response extends HttpResponse { } /** Gets data using search. */ -export interface DiscoveryQuerydefaultResponse extends HttpResponse { - status: "500"; +export interface DiscoveryQueryDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -930,8 +904,8 @@ export interface DiscoverySuggest200Response extends HttpResponse { } /** Get search suggestions by query criteria. */ -export interface DiscoverySuggestdefaultResponse extends HttpResponse { - status: "500"; +export interface DiscoverySuggestDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -942,8 +916,8 @@ export interface DiscoveryBrowse200Response extends HttpResponse { } /** Browse entities by path or entity type. */ -export interface DiscoveryBrowsedefaultResponse extends HttpResponse { - status: "500"; +export interface DiscoveryBrowseDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -954,8 +928,8 @@ export interface DiscoveryAutoComplete200Response extends HttpResponse { } /** Get auto complete options. */ -export interface DiscoveryAutoCompletedefaultResponse extends HttpResponse { - status: "500"; +export interface DiscoveryAutoCompleteDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -966,8 +940,8 @@ export interface LineageGetLineageGraph200Response extends HttpResponse { } /** Get lineage info of the entity specified by GUID. */ -export interface LineageGetLineageGraphdefaultResponse extends HttpResponse { - status: "500"; +export interface LineageGetLineageGraphDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -978,8 +952,8 @@ export interface LineageNextPageLineage200Response extends HttpResponse { } /** Return immediate next page lineage info about entity with pagination */ -export interface LineageNextPageLineagedefaultResponse extends HttpResponse { - status: "500"; +export interface LineageNextPageLineageDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1008,7 +982,6 @@ export interface LineageGetLineageByUniqueAttribute200Response extends HttpRespo */ export interface LineageGetLineageByUniqueAttribute400Response extends HttpResponse { status: "400"; - body: Record; } /** @@ -1022,7 +995,6 @@ export interface LineageGetLineageByUniqueAttribute400Response extends HttpRespo */ export interface LineageGetLineageByUniqueAttribute404Response extends HttpResponse { status: "404"; - body: Record; } /** Create a new relationship between entities. */ @@ -1032,8 +1004,8 @@ export interface RelationshipCreate200Response extends HttpResponse { } /** Create a new relationship between entities. */ -export interface RelationshipCreatedefaultResponse extends HttpResponse { - status: "500"; +export interface RelationshipCreateDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1044,8 +1016,8 @@ export interface RelationshipUpdate200Response extends HttpResponse { } /** Update an existing relationship between entities. */ -export interface RelationshipUpdatedefaultResponse extends HttpResponse { - status: "500"; +export interface RelationshipUpdateDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1056,20 +1028,19 @@ export interface RelationshipGet200Response extends HttpResponse { } /** Get relationship information between entities by its GUID. */ -export interface RelationshipGetdefaultResponse extends HttpResponse { - status: "500"; +export interface RelationshipGetDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete a relationship between entities by its GUID. */ export interface RelationshipDelete204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete a relationship between entities by its GUID. */ -export interface RelationshipDeletedefaultResponse extends HttpResponse { - status: "500"; +export interface RelationshipDeleteDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1082,7 +1053,6 @@ export interface TypesGetBusinessMetadataDefByGuid200Response extends HttpRespon /** Get the businessMetadata definition for the given guid */ export interface TypesGetBusinessMetadataDefByGuid404Response extends HttpResponse { status: "404"; - body: Record; } /** Get the businessMetadata definition by it's name (unique) */ @@ -1094,7 +1064,6 @@ export interface TypesGetBusinessMetadataDefByName200Response extends HttpRespon /** Get the businessMetadata definition by it's name (unique) */ export interface TypesGetBusinessMetadataDefByName404Response extends HttpResponse { status: "404"; - body: Record; } /** Get the classification definition for the given GUID. */ @@ -1104,8 +1073,8 @@ export interface TypesGetClassificationDefByGuid200Response extends HttpResponse } /** Get the classification definition for the given GUID. */ -export interface TypesGetClassificationDefByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetClassificationDefByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1116,8 +1085,8 @@ export interface TypesGetClassificationDefByName200Response extends HttpResponse } /** Get the classification definition by its name (unique). */ -export interface TypesGetClassificationDefByNamedefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetClassificationDefByNameDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1128,8 +1097,8 @@ export interface TypesGetEntityDefinitionByGuid200Response extends HttpResponse } /** Get the Entity definition for the given GUID. */ -export interface TypesGetEntityDefinitionByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetEntityDefinitionByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1140,8 +1109,8 @@ export interface TypesGetEntityDefinitionByName200Response extends HttpResponse } /** Get the entity definition by its name (unique). */ -export interface TypesGetEntityDefinitionByNamedefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetEntityDefinitionByNameDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1152,8 +1121,8 @@ export interface TypesGetEnumDefByGuid200Response extends HttpResponse { } /** Get the enum definition for the given GUID. */ -export interface TypesGetEnumDefByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetEnumDefByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1164,8 +1133,8 @@ export interface TypesGetEnumDefByName200Response extends HttpResponse { } /** Get the enum definition by its name (unique). */ -export interface TypesGetEnumDefByNamedefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetEnumDefByNameDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1176,8 +1145,8 @@ export interface TypesGetRelationshipDefByGuid200Response extends HttpResponse { } /** Get the relationship definition for the given GUID. */ -export interface TypesGetRelationshipDefByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetRelationshipDefByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1188,8 +1157,8 @@ export interface TypesGetRelationshipDefByName200Response extends HttpResponse { } /** Get the relationship definition by its name (unique). */ -export interface TypesGetRelationshipDefByNamedefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetRelationshipDefByNameDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1200,8 +1169,8 @@ export interface TypesGetStructDefByGuid200Response extends HttpResponse { } /** Get the struct definition for the given GUID. */ -export interface TypesGetStructDefByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetStructDefByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1212,8 +1181,8 @@ export interface TypesGetStructDefByName200Response extends HttpResponse { } /** Get the struct definition by its name (unique). */ -export interface TypesGetStructDefByNamedefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetStructDefByNameDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1224,8 +1193,8 @@ export interface TypesGetTypeDefinitionByGuid200Response extends HttpResponse { } /** Get the type definition for the given GUID. */ -export interface TypesGetTypeDefinitionByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetTypeDefinitionByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1236,20 +1205,19 @@ export interface TypesGetTypeDefinitionByName200Response extends HttpResponse { } /** Get the type definition by its name (unique). */ -export interface TypesGetTypeDefinitionByNamedefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetTypeDefinitionByNameDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete API for type identified by its name. */ export interface TypesDeleteTypeByName204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete API for type identified by its name. */ -export interface TypesDeleteTypeByNamedefaultResponse extends HttpResponse { - status: "500"; +export interface TypesDeleteTypeByNameDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1260,8 +1228,8 @@ export interface TypesGetAllTypeDefinitions200Response extends HttpResponse { } /** Get all type definitions in Atlas in bulk. */ -export interface TypesGetAllTypeDefinitionsdefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetAllTypeDefinitionsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1278,8 +1246,8 @@ export interface TypesCreateTypeDefinitions200Response extends HttpResponse { * Create all atlas type definitions in bulk, only new definitions will be created. * Any changes to the existing definitions will be discarded. */ -export interface TypesCreateTypeDefinitionsdefaultResponse extends HttpResponse { - status: "500"; +export interface TypesCreateTypeDefinitionsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1290,20 +1258,19 @@ export interface TypesUpdateAtlasTypeDefinitions200Response extends HttpResponse } /** Update all types in bulk, changes detected in the type definitions would be persisted. */ -export interface TypesUpdateAtlasTypeDefinitionsdefaultResponse extends HttpResponse { - status: "500"; +export interface TypesUpdateAtlasTypeDefinitionsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } /** Delete API for all types in bulk. */ export interface TypesDeleteTypeDefinitions204Response extends HttpResponse { status: "204"; - body: Record; } /** Delete API for all types in bulk. */ -export interface TypesDeleteTypeDefinitionsdefaultResponse extends HttpResponse { - status: "500"; +export interface TypesDeleteTypeDefinitionsDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1314,8 +1281,8 @@ export interface TypesListTypeDefinitionHeaders200Response extends HttpResponse } /** List all type definitions returned as a list of minimal information header. */ -export interface TypesListTypeDefinitionHeadersdefaultResponse extends HttpResponse { - status: "500"; +export interface TypesListTypeDefinitionHeadersDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1326,8 +1293,8 @@ export interface TypesGetTermTemplateDefByGuid200Response extends HttpResponse { } /** Get the term template definition for the given GUID. */ -export interface TypesGetTermTemplateDefByGuiddefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetTermTemplateDefByGuidDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1338,8 +1305,8 @@ export interface TypesGetTermTemplateDefByName200Response extends HttpResponse { } /** Get the term template definition by its name (unique). */ -export interface TypesGetTermTemplateDefByNamedefaultResponse extends HttpResponse { - status: "500"; +export interface TypesGetTermTemplateDefByNameDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1358,8 +1325,8 @@ export interface CollectionCreateOrUpdate200Response extends HttpResponse { * Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. * Map and array of collections are not well supported. E.g., array>, array>. */ -export interface CollectionCreateOrUpdatedefaultResponse extends HttpResponse { - status: "500"; +export interface CollectionCreateOrUpdateDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1378,8 +1345,8 @@ export interface CollectionCreateOrUpdateBulk200Response extends HttpResponse { * Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. * Map and array of collections are not well supported. E.g., array>, array>. */ -export interface CollectionCreateOrUpdateBulkdefaultResponse extends HttpResponse { - status: "500"; +export interface CollectionCreateOrUpdateBulkDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } @@ -1390,7 +1357,7 @@ export interface CollectionMoveEntitiesToCollection200Response extends HttpRespo } /** Move existing entities to the target collection. */ -export interface CollectionMoveEntitiesToCollectiondefaultResponse extends HttpResponse { - status: "500"; +export interface CollectionMoveEntitiesToCollectionDefaultResponse extends HttpResponse { + status: string; body: ErrorResponseOutput; } diff --git a/sdk/purview/purview-catalog-rest/src/serializeHelper.ts b/sdk/purview/purview-catalog-rest/src/serializeHelper.ts new file mode 100644 index 000000000000..593ee9fcc7ba --- /dev/null +++ b/sdk/purview/purview-catalog-rest/src/serializeHelper.ts @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export function buildMultiCollection(items: string[], parameterName: string): string { + return items + .map((item, index) => { + if (index === 0) { + return item; + } + return `${parameterName}=${item}`; + }) + .join("&"); +} diff --git a/sdk/purview/purview-catalog-rest/swagger/README.md b/sdk/purview/purview-catalog-rest/swagger/README.md index 456535f254e6..6f8384963a82 100644 --- a/sdk/purview/purview-catalog-rest/swagger/README.md +++ b/sdk/purview/purview-catalog-rest/swagger/README.md @@ -5,6 +5,8 @@ ## Configuration ```yaml +flavor: azure +openapi-type: data-plane package-name: "@azure-rest/purview-catalog" title: PurviewCatalog description: Purview Catalog Client @@ -18,7 +20,7 @@ rest-level-client: true add-credentials: true credential-scopes: "https://purview.azure.net/.default" use-extension: - "@autorest/typescript": "6.0.0-alpha.17.20220328.1" + "@autorest/typescript": "latest" ``` ```yaml diff --git a/sdk/purview/purview-catalog-rest/test/public/glossary.spec.ts b/sdk/purview/purview-catalog-rest/test/public/glossary.spec.ts index 59a472d61cae..2f616b58b124 100644 --- a/sdk/purview/purview-catalog-rest/test/public/glossary.spec.ts +++ b/sdk/purview/purview-catalog-rest/test/public/glossary.spec.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { PurviewCatalogClient } from "../../src/index.js"; -import { getLongRunningPoller } from "../../src/index.js"; +import type { AtlasGlossaryOutput, PurviewCatalogClient } from "../../src/index.js"; +import { getLongRunningPoller, isUnexpected } from "../../src/index.js"; import { Recorder } from "@azure-tools/test-recorder"; import { createClient } from "./utils/recordedClient.js"; import { describe, it, assert, beforeEach, afterEach } from "vitest"; @@ -36,8 +36,12 @@ describe("purview catalog glossary test", () => { console.log("created glossary: ", glossary); + if (isUnexpected(glossary)) { + throw glossary; + } assert.strictEqual(glossary.status, "200"); - glossaryGuid = glossary.status === "200" ? glossary?.body?.guid || "" : ""; + const atlasGlossaryOutput = glossary.body as AtlasGlossaryOutput; + glossaryGuid = glossary.status === "200" ? atlasGlossaryOutput?.guid || "" : ""; }); it("should work with LRO helper", { timeout: 500000 }, async () => { @@ -63,13 +67,13 @@ describe("purview catalog glossary test", () => { }); console.log("LRO init resp: ", initialResponse); - const poller = getLongRunningPoller(client, initialResponse, { + const poller = await getLongRunningPoller(client, initialResponse, { intervalInMs: 100, }); const result = await poller.pollUntilDone(); console.log("LRO polling result:", result); - if (result.status === "500") { + if (isUnexpected(result)) { const error = `Unexpected status code ${result.status}`; assert.fail(error); } diff --git a/sdk/purview/purview-catalog-rest/test/public/typedefs.spec.ts b/sdk/purview/purview-catalog-rest/test/public/typedefs.spec.ts index 3fd7895d1d98..c42aa643807b 100644 --- a/sdk/purview/purview-catalog-rest/test/public/typedefs.spec.ts +++ b/sdk/purview/purview-catalog-rest/test/public/typedefs.spec.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { PurviewCatalogClient } from "../../src/index.js"; +import { isUnexpected, type PurviewCatalogClient } from "../../src/index.js"; import { Recorder } from "@azure-tools/test-recorder"; import { createClient } from "./utils/recordedClient.js"; import { describe, it, assert, beforeEach, afterEach } from "vitest"; @@ -22,7 +22,7 @@ describe("purview catalog tepedefs test", { timeout: 500000 }, () => { const result = await client.path("/atlas/v2/types/typedefs").get(); // console.dir(result); - if (result.status !== "200") { + if (isUnexpected(result)) { assert.fail(`GET "/atlas/v2/types/typedefs" failed with ${result.status}`); }