From 022e97a9b6317e558dc7cb130eca2e47d0f26fce Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:47:59 +0800 Subject: [PATCH 1/8] refresh purview-datamap-rest sdk --- sdk/purview/purview-datamap-rest/package.json | 2 +- .../review/purview-datamap.api.md | 538 +++++++++++++----- .../src/clientDefinitions.ts | 435 +++++++++----- .../purview-datamap-rest/src/isUnexpected.ts | 259 ++++++--- .../purview-datamap-rest/src/models.ts | 461 +++++++++------ .../purview-datamap-rest/src/outputModels.ts | 481 +++++++--------- .../purview-datamap-rest/src/parameters.ts | 365 +++++++----- .../src/purviewDataMapClient.ts | 31 +- .../purview-datamap-rest/src/responses.ts | 189 +++--- .../src/serializeHelper.ts | 5 +- .../test/public/entityTest.spec.ts | 7 +- 11 files changed, 1760 insertions(+), 1013 deletions(-) diff --git a/sdk/purview/purview-datamap-rest/package.json b/sdk/purview/purview-datamap-rest/package.json index 0059c01c55b9..168d8b724fac 100644 --- a/sdk/purview/purview-datamap-rest/package.json +++ b/sdk/purview/purview-datamap-rest/package.json @@ -61,7 +61,7 @@ "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.2.0", + "@azure-rest/core-client": "^2.1.0", "@azure/core-auth": "^1.6.0", "@azure/core-rest-pipeline": "^1.14.0", "@azure/logger": "^1.0.0", diff --git a/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md b/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md index d665f53c37a3..0e0e1c9d2ae4 100644 --- a/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md +++ b/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md @@ -11,13 +11,14 @@ import { createFileFromStream } from '@azure/core-rest-pipeline'; import { CreateFileFromStreamOptions } from '@azure/core-rest-pipeline'; import { CreateFileOptions } from '@azure/core-rest-pipeline'; import { HttpResponse } from '@azure-rest/core-client'; +import { RawHttpHeaders } from '@azure/core-rest-pipeline'; import { RequestParameters } from '@azure-rest/core-client'; import { StreamableMethod } from '@azure-rest/core-client'; import { TokenCredential } from '@azure/core-auth'; // @public export interface AtlasAttributeDef { - cardinality?: string; + cardinality?: CardinalityValue; constraints?: Array; defaultValue?: string; description?: string; @@ -34,7 +35,7 @@ export interface AtlasAttributeDef { // @public export interface AtlasAttributeDefOutput { - cardinality?: string; + cardinality?: CardinalityValueOutput; constraints?: Array; defaultValue?: string; description?: string; @@ -52,7 +53,7 @@ export interface AtlasAttributeDefOutput { // @public export interface AtlasBusinessMetadataDef { attributeDefs?: Array; - category?: string; + category?: TypeCategory; createdBy?: string; createTime?: number; dateFormatter?: DateFormat; @@ -71,7 +72,7 @@ export interface AtlasBusinessMetadataDef { // @public export interface AtlasBusinessMetadataDefOutput { attributeDefs?: Array; - category?: string; + category?: TypeCategoryOutput; createdBy?: string; createTime?: number; dateFormatter?: DateFormatOutput; @@ -91,7 +92,7 @@ export interface AtlasBusinessMetadataDefOutput { export interface AtlasClassification { attributes?: Record; entityGuid?: string; - entityStatus?: string; + entityStatus?: EntityStatus; lastModifiedTS?: string; removePropagationsOnEntityDelete?: boolean; typeName?: string; @@ -101,7 +102,7 @@ export interface AtlasClassification { // @public export interface AtlasClassificationDef { attributeDefs?: Array; - category?: string; + category?: TypeCategory; createdBy?: string; createTime?: number; dateFormatter?: DateFormat; @@ -123,7 +124,7 @@ export interface AtlasClassificationDef { // @public export interface AtlasClassificationDefOutput { attributeDefs?: Array; - category?: string; + category?: TypeCategoryOutput; createdBy?: string; createTime?: number; dateFormatter?: DateFormatOutput; @@ -146,7 +147,7 @@ export interface AtlasClassificationDefOutput { export interface AtlasClassificationOutput { attributes?: Record; entityGuid?: string; - entityStatus?: string; + entityStatus?: EntityStatusOutput; lastModifiedTS?: string; removePropagationsOnEntityDelete?: boolean; typeName?: string; @@ -158,7 +159,7 @@ export interface AtlasClassificationsOutput { list?: any[]; pageSize?: number; sortBy?: string; - sortType?: string; + sortType?: SortTypeOutput; startIndex?: number; totalCount?: number; } @@ -205,7 +206,7 @@ export interface AtlasEntity { provenanceType?: number; proxy?: boolean; relationshipAttributes?: Record; - status?: string; + status?: EntityStatus; typeName?: string; updatedBy?: string; updateTime?: number; @@ -215,7 +216,7 @@ export interface AtlasEntity { // @public export interface AtlasEntityDef { attributeDefs?: Array; - category?: string; + category?: TypeCategory; createdBy?: string; createTime?: number; dateFormatter?: DateFormat; @@ -237,7 +238,7 @@ export interface AtlasEntityDef { // @public export interface AtlasEntityDefOutput { attributeDefs?: Array; - category?: string; + category?: TypeCategoryOutput; createdBy?: string; createTime?: number; dateFormatter?: DateFormatOutput; @@ -268,7 +269,7 @@ export interface AtlasEntityHeader { lastModifiedTS?: string; meaningNames?: string[]; meanings?: Array; - status?: string; + status?: EntityStatus; typeName?: string; } @@ -284,7 +285,7 @@ export interface AtlasEntityHeaderOutput { lastModifiedTS?: string; meaningNames?: string[]; meanings?: Array; - status?: string; + status?: EntityStatusOutput; typeName?: string; } @@ -312,7 +313,7 @@ export interface AtlasEntityOutput { provenanceType?: number; proxy?: boolean; relationshipAttributes?: Record; - status?: string; + status?: EntityStatusOutput; typeName?: string; updatedBy?: string; updateTime?: number; @@ -333,7 +334,7 @@ export interface AtlasEntityWithExtInfoOutput { // @public export interface AtlasEnumDef { - category?: string; + category?: TypeCategory; createdBy?: string; createTime?: number; dateFormatter?: DateFormat; @@ -353,7 +354,7 @@ export interface AtlasEnumDef { // @public export interface AtlasEnumDefOutput { - category?: string; + category?: TypeCategoryOutput; createdBy?: string; createTime?: number; dateFormatter?: DateFormatOutput; @@ -430,6 +431,25 @@ export interface AtlasGlossaryCategory { updateTime?: number; } +// @public +export interface AtlasGlossaryCategory { + anchor?: AtlasGlossaryHeader; + childrenCategories?: Array; + classifications?: Array; + createdBy?: string; + createTime?: number; + guid?: string; + lastModifiedTS?: string; + longDescription?: string; + name?: string; + parentCategory?: AtlasRelatedCategoryHeader; + qualifiedName?: string; + shortDescription?: string; + terms?: Array; + updatedBy?: string; + updateTime?: number; +} + // @public export interface AtlasGlossaryCategoryOutput { anchor?: AtlasGlossaryHeaderOutput; @@ -532,7 +552,48 @@ export interface AtlasGlossaryTerm { resources?: Array; seeAlso?: Array; shortDescription?: string; - status?: string; + status?: TermStatus; + synonyms?: Array; + templateName?: unknown[]; + translatedTerms?: Array; + translationTerms?: Array; + updatedBy?: string; + updateTime?: number; + usage?: string; + validValues?: Array; + validValuesFor?: Array; +} + +// @public +export interface AtlasGlossaryTerm { + abbreviation?: string; + anchor?: AtlasGlossaryHeader; + antonyms?: Array; + assignedEntities?: Array; + attributes?: Record>; + categories?: Array; + classifications?: Array; + classifies?: Array; + contacts?: Record>; + createdBy?: string; + createTime?: number; + examples?: string[]; + guid?: string; + hierarchyInfo?: Array; + isA?: Array; + lastModifiedTS?: string; + longDescription?: string; + name?: string; + nickName?: string; + preferredTerms?: Array; + preferredToTerms?: Array; + qualifiedName?: string; + replacedBy?: Array; + replacementTerms?: Array; + resources?: Array; + seeAlso?: Array; + shortDescription?: string; + status?: TermStatus; synonyms?: Array; templateName?: unknown[]; translatedTerms?: Array; @@ -573,7 +634,7 @@ export interface AtlasGlossaryTermOutput { resources?: Array; seeAlso?: Array; shortDescription?: string; - status?: string; + status?: TermStatusOutput; synonyms?: Array; templateName?: any[]; translatedTerms?: Array; @@ -591,7 +652,7 @@ export interface AtlasLineageInfoOutput { childrenCount?: number; guidEntityMap?: Record; lineageDepth?: number; - lineageDirection?: string; + lineageDirection?: LineageDirectionOutput; lineageWidth?: number; parentRelations?: Array; relations?: Array; @@ -633,11 +694,11 @@ export interface AtlasRelatedCategoryHeaderOutput { // @public export interface AtlasRelatedObjectId { displayText?: string; - entityStatus?: string; + entityStatus?: EntityStatus; guid?: string; relationshipAttributes?: AtlasStruct; relationshipGuid?: string; - relationshipStatus?: string; + relationshipStatus?: StatusAtlasRelationship; relationshipType?: string; typeName?: string; uniqueAttributes?: Record; @@ -646,11 +707,11 @@ export interface AtlasRelatedObjectId { // @public export interface AtlasRelatedObjectIdOutput { displayText?: string; - entityStatus?: string; + entityStatus?: EntityStatusOutput; guid?: string; relationshipAttributes?: AtlasStructOutput; relationshipGuid?: string; - relationshipStatus?: string; + relationshipStatus?: StatusAtlasRelationshipOutput; relationshipType?: string; typeName?: string; uniqueAttributes?: Record; @@ -662,7 +723,7 @@ export interface AtlasRelatedTermHeader { displayText?: string; expression?: string; relationGuid?: string; - status?: string; + status?: AtlasTermRelationshipStatus; steward?: string; termGuid?: string; } @@ -673,7 +734,7 @@ export interface AtlasRelatedTermHeaderOutput { displayText?: string; expression?: string; relationGuid?: string; - status?: string; + status?: AtlasTermRelationshipStatusOutput; steward?: string; termGuid?: string; } @@ -690,7 +751,7 @@ export interface AtlasRelationship { label?: string; lastModifiedTS?: string; provenanceType?: number; - status?: string; + status?: StatusAtlasRelationship; typeName?: string; updatedBy?: string; updateTime?: number; @@ -699,7 +760,7 @@ export interface AtlasRelationship { // @public export interface AtlasRelationshipAttributeDef { - cardinality?: string; + cardinality?: CardinalityValue; constraints?: Array; defaultValue?: string; description?: string; @@ -718,7 +779,7 @@ export interface AtlasRelationshipAttributeDef { // @public export interface AtlasRelationshipAttributeDefOutput { - cardinality?: string; + cardinality?: CardinalityValueOutput; constraints?: Array; defaultValue?: string; description?: string; @@ -738,7 +799,7 @@ export interface AtlasRelationshipAttributeDefOutput { // @public export interface AtlasRelationshipDef { attributeDefs?: Array; - category?: string; + category?: TypeCategory; createdBy?: string; createTime?: number; dateFormatter?: DateFormat; @@ -749,7 +810,7 @@ export interface AtlasRelationshipDef { lastModifiedTS?: string; name?: string; options?: Record; - relationshipCategory?: string; + relationshipCategory?: RelationshipCategory; relationshipLabel?: string; serviceType?: string; typeVersion?: string; @@ -761,7 +822,7 @@ export interface AtlasRelationshipDef { // @public export interface AtlasRelationshipDefOutput { attributeDefs?: Array; - category?: string; + category?: TypeCategoryOutput; createdBy?: string; createTime?: number; dateFormatter?: DateFormatOutput; @@ -772,7 +833,7 @@ export interface AtlasRelationshipDefOutput { lastModifiedTS?: string; name?: string; options?: Record; - relationshipCategory?: string; + relationshipCategory?: RelationshipCategoryOutput; relationshipLabel?: string; serviceType?: string; typeVersion?: string; @@ -783,7 +844,7 @@ export interface AtlasRelationshipDefOutput { // @public export interface AtlasRelationshipEndDef { - cardinality?: string; + cardinality?: CardinalityValue; description?: string; isContainer?: boolean; isLegacyAttribute?: boolean; @@ -793,7 +854,7 @@ export interface AtlasRelationshipEndDef { // @public export interface AtlasRelationshipEndDefOutput { - cardinality?: string; + cardinality?: CardinalityValueOutput; description?: string; isContainer?: boolean; isLegacyAttribute?: boolean; @@ -813,7 +874,7 @@ export interface AtlasRelationshipOutput { label?: string; lastModifiedTS?: string; provenanceType?: number; - status?: string; + status?: StatusAtlasRelationshipOutput; typeName?: string; updatedBy?: string; updateTime?: number; @@ -836,7 +897,7 @@ export interface AtlasStruct { // @public export interface AtlasStructDef { attributeDefs?: Array; - category?: string; + category?: TypeCategory; createdBy?: string; createTime?: number; dateFormatter?: DateFormat; @@ -855,7 +916,7 @@ export interface AtlasStructDef { // @public export interface AtlasStructDefOutput { attributeDefs?: Array; - category?: string; + category?: TypeCategoryOutput; createdBy?: string; createTime?: number; dateFormatter?: DateFormatOutput; @@ -886,7 +947,7 @@ export interface AtlasTermAssignmentHeader { displayText?: string; expression?: string; relationGuid?: string; - status?: string; + status?: AtlasTermAssignmentStatus; steward?: string; termGuid?: string; } @@ -899,18 +960,24 @@ export interface AtlasTermAssignmentHeaderOutput { displayText?: string; expression?: string; relationGuid?: string; - status?: string; + status?: AtlasTermAssignmentStatusOutput; steward?: string; termGuid?: string; } +// @public +export type AtlasTermAssignmentStatus = "DISCOVERED" | "PROPOSED" | "IMPORTED" | "VALIDATED" | "DEPRECATED" | "OBSOLETE" | "OTHER"; + +// @public +export type AtlasTermAssignmentStatusOutput = "DISCOVERED" | "PROPOSED" | "IMPORTED" | "VALIDATED" | "DEPRECATED" | "OBSOLETE" | "OTHER"; + // @public export interface AtlasTermCategorizationHeader { categoryGuid?: string; description?: string; displayText?: string; relationGuid?: string; - status?: string; + status?: AtlasTermRelationshipStatus; } // @public @@ -919,12 +986,18 @@ export interface AtlasTermCategorizationHeaderOutput { description?: string; displayText?: string; relationGuid?: string; - status?: string; + status?: AtlasTermRelationshipStatusOutput; } +// @public +export type AtlasTermRelationshipStatus = "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; + +// @public +export type AtlasTermRelationshipStatusOutput = "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; + // @public export interface AtlasTypeDefHeaderOutput { - category?: string; + category?: TypeCategoryOutput; guid?: string; name?: string; } @@ -932,7 +1005,7 @@ export interface AtlasTypeDefHeaderOutput { // @public export interface AtlasTypeDefOutput { attributeDefs?: Array; - category?: string; + category?: TypeCategoryOutput; createdBy?: string; createTime?: number; dateFormatter?: DateFormatOutput; @@ -947,7 +1020,7 @@ export interface AtlasTypeDefOutput { name?: string; options?: Record; relationshipAttributeDefs?: Array; - relationshipCategory?: string; + relationshipCategory?: RelationshipCategoryOutput; relationshipLabel?: string; serviceType?: string; subTypes?: string[]; @@ -1008,15 +1081,29 @@ export interface BulkImportResultOutput { } // @public -export interface BusinessMetadataOptions { - file: string | Uint8Array | ReadableStream | NodeJS.ReadableStream | File; -} +export type BusinessAttributeUpdateBehavior = "ignore" | "replace" | "merge"; // @public -export interface BusinessMetadataOptionsOutput { - file: Uint8Array; +export type BusinessMetadataOptions = FormData | Array; + +// @public (undocumented) +export interface BusinessMetadataOptionsFilePartDescriptor { + // (undocumented) + body: string | Uint8Array | ReadableStream | NodeJS.ReadableStream | File; + // (undocumented) + contentType?: string; + // (undocumented) + filename?: string; + // (undocumented) + name: "file"; } +// @public +export type CardinalityValue = "SINGLE" | "LIST" | "SET"; + +// @public +export type CardinalityValueOutput = "SINGLE" | "LIST" | "SET"; + // @public export interface ClassificationAssociateOptions { classification?: AtlasClassification; @@ -1043,7 +1130,7 @@ export interface ContactSearchResultValueOutput { } // @public -function createClient(endpoint: string, credentials: TokenCredential, options?: ClientOptions): PurviewDataMapClient; +function createClient(endpointParam: string, credentials: TokenCredential, options?: PurviewDataMapClientOptions): PurviewDataMapClient; export default createClient; export { createFile } @@ -1082,7 +1169,7 @@ export interface DateFormatOutput { // @public (undocumented) export interface DiscoveryAutoComplete { - post(options?: DiscoveryAutoCompleteParameters): StreamableMethod; + post(options: DiscoveryAutoCompleteParameters): StreamableMethod; } // @public @@ -1096,7 +1183,7 @@ export interface DiscoveryAutoComplete200Response extends HttpResponse { // @public (undocumented) export interface DiscoveryAutoCompleteBodyParam { // (undocumented) - body?: AutoCompleteOptions; + body: AutoCompleteOptions; } // @public (undocumented) @@ -1108,11 +1195,22 @@ export interface DiscoveryAutoCompleteDefaultResponse extends HttpResponse { } // @public (undocumented) -export type DiscoveryAutoCompleteParameters = DiscoveryAutoCompleteBodyParam & RequestParameters; +export type DiscoveryAutoCompleteParameters = DiscoveryAutoCompleteQueryParam & DiscoveryAutoCompleteBodyParam & RequestParameters; + +// @public (undocumented) +export interface DiscoveryAutoCompleteQueryParam { + // (undocumented) + queryParameters: DiscoveryAutoCompleteQueryParamProperties; +} + +// @public (undocumented) +export interface DiscoveryAutoCompleteQueryParamProperties { + "api-version": string; +} // @public (undocumented) export interface DiscoveryQuery { - post(options?: DiscoveryQueryParameters): StreamableMethod; + post(options: DiscoveryQueryParameters): StreamableMethod; } // @public @@ -1126,7 +1224,7 @@ export interface DiscoveryQuery200Response extends HttpResponse { // @public (undocumented) export interface DiscoveryQueryBodyParam { // (undocumented) - body?: QueryOptions; + body: QueryOptions; } // @public (undocumented) @@ -1138,11 +1236,22 @@ export interface DiscoveryQueryDefaultResponse extends HttpResponse { } // @public (undocumented) -export type DiscoveryQueryParameters = DiscoveryQueryBodyParam & RequestParameters; +export type DiscoveryQueryParameters = DiscoveryQueryQueryParam & DiscoveryQueryBodyParam & RequestParameters; + +// @public (undocumented) +export interface DiscoveryQueryQueryParam { + // (undocumented) + queryParameters: DiscoveryQueryQueryParamProperties; +} + +// @public (undocumented) +export interface DiscoveryQueryQueryParamProperties { + "api-version": string; +} // @public (undocumented) export interface DiscoverySuggest { - post(options?: DiscoverySuggestParameters): StreamableMethod; + post(options: DiscoverySuggestParameters): StreamableMethod; } // @public @@ -1156,7 +1265,7 @@ export interface DiscoverySuggest200Response extends HttpResponse { // @public (undocumented) export interface DiscoverySuggestBodyParam { // (undocumented) - body?: SuggestOptions; + body: SuggestOptions; } // @public (undocumented) @@ -1168,11 +1277,22 @@ export interface DiscoverySuggestDefaultResponse extends HttpResponse { } // @public (undocumented) -export type DiscoverySuggestParameters = DiscoverySuggestBodyParam & RequestParameters; +export type DiscoverySuggestParameters = DiscoverySuggestQueryParam & DiscoverySuggestBodyParam & RequestParameters; + +// @public (undocumented) +export interface DiscoverySuggestQueryParam { + // (undocumented) + queryParameters: DiscoverySuggestQueryParamProperties; +} + +// @public (undocumented) +export interface DiscoverySuggestQueryParamProperties { + "api-version": string; +} // @public (undocumented) export interface EntityAddClassification { - post(options?: EntityAddClassificationParameters): StreamableMethod; + post(options: EntityAddClassificationParameters): StreamableMethod; } // @public @@ -1184,7 +1304,7 @@ export interface EntityAddClassification204Response extends HttpResponse { // @public (undocumented) export interface EntityAddClassificationBodyParam { // (undocumented) - body?: ClassificationAssociateOptions; + body: ClassificationAssociateOptions; } // @public (undocumented) @@ -1380,7 +1500,7 @@ export interface EntityBulkCreateOrUpdate200Response extends HttpResponse { // @public (undocumented) export interface EntityBulkCreateOrUpdateBodyParam { // (undocumented) - body?: AtlasEntitiesWithExtInfo; + body: AtlasEntitiesWithExtInfo; } // @public (undocumented) @@ -1402,7 +1522,8 @@ export interface EntityBulkCreateOrUpdateQueryParam { // @public (undocumented) export interface EntityBulkCreateOrUpdateQueryParamProperties { - businessAttributeUpdateBehavior?: string; + "api-version"?: string; + businessAttributeUpdateBehavior?: BusinessAttributeUpdateBehavior; collectionId?: string; } @@ -1438,7 +1559,7 @@ export interface EntityBulkDeleteQueryParamProperties { // @public (undocumented) export interface EntityBulkSetClassifications { - post(options?: EntityBulkSetClassificationsParameters): StreamableMethod; + post(options: EntityBulkSetClassificationsParameters): StreamableMethod; } // @public @@ -1452,7 +1573,7 @@ export interface EntityBulkSetClassifications200Response extends HttpResponse { // @public (undocumented) export interface EntityBulkSetClassificationsBodyParam { // (undocumented) - body?: AtlasEntityHeaders; + body: AtlasEntityHeaders; } // @public (undocumented) @@ -1468,7 +1589,7 @@ export type EntityBulkSetClassificationsParameters = EntityBulkSetClassification // @public (undocumented) export interface EntityCreateOrUpdate { - post(options?: EntityCreateOrUpdateParameters): StreamableMethod; + post(options: EntityCreateOrUpdateParameters): StreamableMethod; } // @public @@ -1482,7 +1603,7 @@ export interface EntityCreateOrUpdate200Response extends HttpResponse { // @public (undocumented) export interface EntityCreateOrUpdateBodyParam { // (undocumented) - body?: AtlasEntityWithExtInfo; + body: AtlasEntityWithExtInfo; } // @public (undocumented) @@ -1504,10 +1625,19 @@ export interface EntityCreateOrUpdateQueryParam { // @public (undocumented) export interface EntityCreateOrUpdateQueryParamProperties { - businessAttributeUpdateBehavior?: string; + "api-version"?: string; + businessAttributeUpdateBehavior?: BusinessAttributeUpdateBehavior; collectionId?: string; } +// @public +export interface EntityDelete200Response extends HttpResponse { + // (undocumented) + body: EntityMutationResultOutput; + // (undocumented) + status: "200"; +} + // @public export interface EntityDeleteByUniqueAttribute200Response extends HttpResponse { // (undocumented) @@ -1538,16 +1668,8 @@ export interface EntityDeleteByUniqueAttributeQueryParamProperties { "attr:qualifiedName"?: string; } -// @public -export interface EntityDeleteOperation200Response extends HttpResponse { - // (undocumented) - body: EntityMutationResultOutput; - // (undocumented) - status: "200"; -} - // @public (undocumented) -export interface EntityDeleteOperationDefaultResponse extends HttpResponse { +export interface EntityDeleteDefaultResponse extends HttpResponse { // (undocumented) body: AtlasErrorResponseOutput; // (undocumented) @@ -1559,7 +1681,7 @@ export type EntityDeleteParameters = RequestParameters; // @public (undocumented) export interface EntityGet { - delete(options?: EntityDeleteParameters): StreamableMethod; + delete(options?: EntityDeleteParameters): StreamableMethod; get(options?: EntityGetParameters): StreamableMethod; put(options: EntityPartialUpdateAttributeByGuidParameters): StreamableMethod; } @@ -1576,7 +1698,7 @@ export interface EntityGet200Response extends HttpResponse { export interface EntityGetByUniqueAttributes { delete(options?: EntityDeleteByUniqueAttributeParameters): StreamableMethod; get(options?: EntityGetByUniqueAttributesParameters): StreamableMethod; - put(options?: EntityPartialUpdateByUniqueAttributesParameters): StreamableMethod; + put(options: EntityPartialUpdateByUniqueAttributesParameters): StreamableMethod; } // @public @@ -1714,10 +1836,18 @@ export interface EntityGetSampleBusinessMetadataTemplate { get(options?: EntityGetSampleBusinessMetadataTemplateParameters): StreamableMethod; } +// @public (undocumented) +export interface EntityGetSampleBusinessMetadataTemplate200Headers { + // (undocumented) + "content-type": "application/octet-stream"; +} + // @public export interface EntityGetSampleBusinessMetadataTemplate200Response extends HttpResponse { body: Uint8Array; // (undocumented) + headers: RawHttpHeaders & EntityGetSampleBusinessMetadataTemplate200Headers; + // (undocumented) status: "200"; } @@ -1748,7 +1878,7 @@ export interface EntityImportBusinessMetadata200Response extends HttpResponse { // @public (undocumented) export interface EntityImportBusinessMetadataBodyParam { // (undocumented) - body?: BusinessMetadataOptions; + body: BusinessMetadataOptions; } // @public (undocumented) @@ -1771,7 +1901,7 @@ export type EntityImportBusinessMetadataParameters = EntityImportBusinessMetadat export interface EntityListByGuids { delete(options: EntityBulkDeleteParameters): StreamableMethod; get(options: EntityListByGuidsParameters): StreamableMethod; - post(options?: EntityBulkCreateOrUpdateParameters): StreamableMethod; + post(options: EntityBulkCreateOrUpdateParameters): StreamableMethod; } // @public @@ -1801,6 +1931,7 @@ export interface EntityListByGuidsQueryParam { // @public (undocumented) export interface EntityListByGuidsQueryParamProperties { + "api-version"?: string; guid: string; ignoreRelationships?: boolean; minExtInfo?: boolean; @@ -1859,7 +1990,7 @@ export interface EntityMoveEntitiesToCollection200Response extends HttpResponse // @public (undocumented) export interface EntityMoveEntitiesToCollectionBodyParam { // (undocumented) - body?: MoveEntitiesOptions; + body: MoveEntitiesOptions; } // @public (undocumented) @@ -1881,6 +2012,7 @@ export interface EntityMoveEntitiesToCollectionQueryParam { // @public (undocumented) export interface EntityMoveEntitiesToCollectionQueryParamProperties { + "api-version": string; collectionId: string; } @@ -1937,7 +2069,7 @@ export interface EntityPartialUpdateByUniqueAttributes200Response extends HttpRe // @public (undocumented) export interface EntityPartialUpdateByUniqueAttributesBodyParam { // (undocumented) - body?: AtlasEntityWithExtInfo; + body: AtlasEntityWithExtInfo; } // @public (undocumented) @@ -2192,6 +2324,12 @@ export interface EntitySetLabelsDefaultResponse extends HttpResponse { // @public (undocumented) export type EntitySetLabelsParameters = EntitySetLabelsBodyParam & RequestParameters; +// @public +export type EntityStatus = "ACTIVE" | "DELETED"; + +// @public +export type EntityStatusOutput = "ACTIVE" | "DELETED"; + // @public export interface EntityUpdateClassifications204Response extends HttpResponse { // (undocumented) @@ -2280,7 +2418,7 @@ export interface GlossaryCreate200Response extends HttpResponse { // @public (undocumented) export interface GlossaryCreateBodyParam { // (undocumented) - body?: AtlasGlossary; + body: AtlasGlossary; } // @public (undocumented) @@ -2314,7 +2452,7 @@ export type GlossaryCreateCategoriesParameters = GlossaryCreateCategoriesBodyPar // @public (undocumented) export interface GlossaryCreateCategory { - post(options?: GlossaryCreateCategoryParameters): StreamableMethod; + post(options: GlossaryCreateCategoryParameters): StreamableMethod; } // @public @@ -2328,7 +2466,7 @@ export interface GlossaryCreateCategory200Response extends HttpResponse { // @public (undocumented) export interface GlossaryCreateCategoryBodyParam { // (undocumented) - body?: AtlasGlossaryCategory; + body: AtlasGlossaryCategory; } // @public (undocumented) @@ -2355,7 +2493,7 @@ export type GlossaryCreateParameters = GlossaryCreateBodyParam & RequestParamete // @public (undocumented) export interface GlossaryCreateTerm { - post(options?: GlossaryCreateTermParameters): StreamableMethod; + post(options: GlossaryCreateTermParameters): StreamableMethod; } // @public @@ -2369,7 +2507,7 @@ export interface GlossaryCreateTerm200Response extends HttpResponse { // @public (undocumented) export interface GlossaryCreateTermBodyParam { // (undocumented) - body?: AtlasGlossaryTerm; + body: AtlasGlossaryTerm; } // @public (undocumented) @@ -2431,9 +2569,16 @@ export interface GlossaryCreateTermsQueryParam { // @public (undocumented) export interface GlossaryCreateTermsQueryParamProperties { + "api-version"?: string; includeTermHierarchy?: boolean; } +// @public +export interface GlossaryDelete204Response extends HttpResponse { + // (undocumented) + status: "204"; +} + // @public export interface GlossaryDeleteCategory204Response extends HttpResponse { // (undocumented) @@ -2451,14 +2596,8 @@ export interface GlossaryDeleteCategoryDefaultResponse extends HttpResponse { // @public (undocumented) export type GlossaryDeleteCategoryParameters = RequestParameters; -// @public -export interface GlossaryDeleteOperation204Response extends HttpResponse { - // (undocumented) - status: "204"; -} - // @public (undocumented) -export interface GlossaryDeleteOperationDefaultResponse extends HttpResponse { +export interface GlossaryDeleteDefaultResponse extends HttpResponse { // (undocumented) body: AtlasErrorResponseOutput; // (undocumented) @@ -2509,9 +2648,9 @@ export type GlossaryDeleteTermParameters = RequestParameters; // @public (undocumented) export interface GlossaryGet { - delete(options?: GlossaryDeleteParameters): StreamableMethod; + delete(options?: GlossaryDeleteParameters): StreamableMethod; get(options?: GlossaryGetParameters): StreamableMethod; - put(options?: GlossaryUpdateParameters): StreamableMethod; + put(options: GlossaryUpdateParameters): StreamableMethod; } // @public @@ -2526,7 +2665,7 @@ export interface GlossaryGet200Response extends HttpResponse { export interface GlossaryGetCategory { delete(options?: GlossaryDeleteCategoryParameters): StreamableMethod; get(options?: GlossaryGetCategoryParameters): StreamableMethod; - put(options?: GlossaryUpdateCategoryParameters): StreamableMethod; + put(options: GlossaryUpdateCategoryParameters): StreamableMethod; } // @public @@ -2578,7 +2717,18 @@ export interface GlossaryGetDetailedDefaultResponse extends HttpResponse { } // @public (undocumented) -export type GlossaryGetDetailedParameters = RequestParameters; +export type GlossaryGetDetailedParameters = GlossaryGetDetailedQueryParam & RequestParameters; + +// @public (undocumented) +export interface GlossaryGetDetailedQueryParam { + // (undocumented) + queryParameters?: GlossaryGetDetailedQueryParamProperties; +} + +// @public (undocumented) +export interface GlossaryGetDetailedQueryParamProperties { + "api-version"?: string; +} // @public (undocumented) export type GlossaryGetParameters = RequestParameters; @@ -2587,7 +2737,7 @@ export type GlossaryGetParameters = RequestParameters; export interface GlossaryGetTerm { delete(options?: GlossaryDeleteTermParameters): StreamableMethod; get(options?: GlossaryGetTermParameters): StreamableMethod; - put(options?: GlossaryUpdateTermParameters): StreamableMethod; + put(options: GlossaryUpdateTermParameters): StreamableMethod; } // @public @@ -2607,12 +2757,23 @@ export interface GlossaryGetTermDefaultResponse extends HttpResponse { } // @public (undocumented) -export type GlossaryGetTermParameters = RequestParameters; +export type GlossaryGetTermParameters = GlossaryGetTermQueryParam & RequestParameters; + +// @public (undocumented) +export interface GlossaryGetTermQueryParam { + // (undocumented) + queryParameters?: GlossaryGetTermQueryParamProperties; +} + +// @public (undocumented) +export interface GlossaryGetTermQueryParamProperties { + "api-version"?: string; +} // @public (undocumented) export interface GlossaryList { get(options?: GlossaryListParameters): StreamableMethod; - post(options?: GlossaryCreateParameters): StreamableMethod; + post(options: GlossaryCreateParameters): StreamableMethod; } // @public @@ -2792,6 +2953,7 @@ export interface GlossaryListQueryParam { // @public (undocumented) export interface GlossaryListQueryParamProperties { + "api-version"?: string; ignoreTermsAndCategories?: boolean; limit?: number; offset?: number; @@ -2867,6 +3029,7 @@ export interface GlossaryListRelatedTermsQueryParam { // @public (undocumented) export interface GlossaryListRelatedTermsQueryParamProperties { + "api-version"?: string; limit?: number; offset?: number; sort?: string; @@ -2941,6 +3104,7 @@ export interface GlossaryListTermsQueryParam { // @public (undocumented) export interface GlossaryListTermsQueryParamProperties { + "api-version"?: string; limit?: number; offset?: number; sort?: string; @@ -3012,6 +3176,7 @@ export interface GlossaryPartialUpdateQueryParam { // @public (undocumented) export interface GlossaryPartialUpdateQueryParamProperties { + "api-version"?: string; ignoreTermsAndCategories?: boolean; } @@ -3052,6 +3217,7 @@ export interface GlossaryPartialUpdateTermQueryParam { // @public (undocumented) export interface GlossaryPartialUpdateTermQueryParamProperties { + "api-version"?: string; includeTermHierarchy?: boolean; } @@ -3066,7 +3232,7 @@ export interface GlossaryUpdate200Response extends HttpResponse { // @public (undocumented) export interface GlossaryUpdateBodyParam { // (undocumented) - body?: AtlasGlossary; + body: AtlasGlossary; } // @public @@ -3080,7 +3246,7 @@ export interface GlossaryUpdateCategory200Response extends HttpResponse { // @public (undocumented) export interface GlossaryUpdateCategoryBodyParam { // (undocumented) - body?: AtlasGlossaryCategory; + body: AtlasGlossaryCategory; } // @public (undocumented) @@ -3113,6 +3279,7 @@ export interface GlossaryUpdateQueryParam { // @public (undocumented) export interface GlossaryUpdateQueryParamProperties { + "api-version"?: string; ignoreTermsAndCategories?: boolean; } @@ -3127,7 +3294,7 @@ export interface GlossaryUpdateTerm200Response extends HttpResponse { // @public (undocumented) export interface GlossaryUpdateTermBodyParam { // (undocumented) - body?: AtlasGlossaryTerm; + body: AtlasGlossaryTerm; } // @public (undocumented) @@ -3149,17 +3316,21 @@ export interface GlossaryUpdateTermQueryParam { // @public (undocumented) export interface GlossaryUpdateTermQueryParamProperties { + "api-version"?: string; includeTermHierarchy?: boolean; } // @public export interface ImportInfoOutput { childObjectName?: string; - importStatus?: string; + importStatus?: ImportStatusOutput; parentObjectName?: string; remarks?: string; } +// @public +export type ImportStatusOutput = "SUCCESS" | "FAILED"; + // @public (undocumented) export function isUnexpected(response: EntityCreateOrUpdate200Response | EntityCreateOrUpdateDefaultResponse): response is EntityCreateOrUpdateDefaultResponse; @@ -3182,7 +3353,7 @@ export function isUnexpected(response: EntityGet200Response | EntityGetDefaultRe export function isUnexpected(response: EntityPartialUpdateAttributeByGuid200Response | EntityPartialUpdateAttributeByGuidDefaultResponse): response is EntityPartialUpdateAttributeByGuidDefaultResponse; // @public (undocumented) -export function isUnexpected(response: EntityDeleteOperation200Response | EntityDeleteOperationDefaultResponse): response is EntityDeleteOperationDefaultResponse; +export function isUnexpected(response: EntityDelete200Response | EntityDeleteDefaultResponse): response is EntityDeleteDefaultResponse; // @public (undocumented) export function isUnexpected(response: EntityGetClassification200Response | EntityGetClassificationDefaultResponse): response is EntityGetClassificationDefaultResponse; @@ -3332,7 +3503,7 @@ export function isUnexpected(response: GlossaryGet200Response | GlossaryGetDefau export function isUnexpected(response: GlossaryUpdate200Response | GlossaryUpdateDefaultResponse): response is GlossaryUpdateDefaultResponse; // @public (undocumented) -export function isUnexpected(response: GlossaryDeleteOperation204Response | GlossaryDeleteOperationDefaultResponse): response is GlossaryDeleteOperationDefaultResponse; +export function isUnexpected(response: GlossaryDelete204Response | GlossaryDeleteDefaultResponse): response is GlossaryDeleteDefaultResponse; // @public (undocumented) export function isUnexpected(response: GlossaryListCategories200Response | GlossaryListCategoriesDefaultResponse): response is GlossaryListCategoriesDefaultResponse; @@ -3380,7 +3551,7 @@ export function isUnexpected(response: RelationshipUpdate200Response | Relations export function isUnexpected(response: RelationshipGet200Response | RelationshipGetDefaultResponse): response is RelationshipGetDefaultResponse; // @public (undocumented) -export function isUnexpected(response: RelationshipDeleteOperation204Response | RelationshipDeleteOperationDefaultResponse): response is RelationshipDeleteOperationDefaultResponse; +export function isUnexpected(response: RelationshipDelete204Response | RelationshipDeleteDefaultResponse): response is RelationshipDeleteDefaultResponse; // @public (undocumented) export function isUnexpected(response: TypeGetBusinessMetadataDefByGuid200Response | TypeGetBusinessMetadataDefByGuidDefaultResponse): response is TypeGetBusinessMetadataDefByGuidDefaultResponse; @@ -3425,7 +3596,7 @@ export function isUnexpected(response: TypeGetByGuid200Response | TypeGetByGuidD export function isUnexpected(response: TypeGetByName200Response | TypeGetByNameDefaultResponse): response is TypeGetByNameDefaultResponse; // @public (undocumented) -export function isUnexpected(response: TypeDeleteOperation204Response | TypeDeleteOperationDefaultResponse): response is TypeDeleteOperationDefaultResponse; +export function isUnexpected(response: TypeDelete204Response | TypeDeleteDefaultResponse): response is TypeDeleteDefaultResponse; // @public (undocumented) export function isUnexpected(response: TypeList200Response | TypeListDefaultResponse): response is TypeListDefaultResponse; @@ -3448,6 +3619,12 @@ export function isUnexpected(response: TypeGetTermTemplateDefByGuid200Response | // @public (undocumented) export function isUnexpected(response: TypeGetTermTemplateDefByName200Response | TypeGetTermTemplateDefByNameDefaultResponse): response is TypeGetTermTemplateDefByNameDefaultResponse; +// @public +export type LineageDirection = "INPUT" | "OUTPUT" | "BOTH"; + +// @public +export type LineageDirectionOutput = "INPUT" | "OUTPUT" | "BOTH"; + // @public (undocumented) export interface LineageGet { get(options: LineageGetParameters): StreamableMethod; @@ -3495,7 +3672,7 @@ export interface LineageGetByUniqueAttributeQueryParam { export interface LineageGetByUniqueAttributeQueryParamProperties { "attr:qualifiedName"?: string; depth?: number; - direction: string; + direction: LineageDirection; } // @public (undocumented) @@ -3538,7 +3715,8 @@ export interface LineageGetNextPageQueryParam { // @public (undocumented) export interface LineageGetNextPageQueryParamProperties { - direction: string; + "api-version": string; + direction: LineageDirection; limit?: number; offset?: number; } @@ -3555,7 +3733,7 @@ export interface LineageGetQueryParam { // @public (undocumented) export interface LineageGetQueryParamProperties { depth?: number; - direction: string; + direction: LineageDirection; } // @public @@ -3585,7 +3763,7 @@ export interface NumberFormat { numberInstance?: NumberFormat; parseIntegerOnly?: boolean; percentInstance?: NumberFormat; - roundingMode?: string; + roundingMode?: RoundingMode; } // @public @@ -3603,7 +3781,7 @@ export interface NumberFormatOutput { numberInstance?: NumberFormatOutput; parseIntegerOnly?: boolean; percentInstance?: NumberFormatOutput; - roundingMode?: string; + roundingMode?: RoundingModeOutput; } // @public @@ -3618,6 +3796,10 @@ export type PurviewDataMapClient = Client & { path: Routes; }; +// @public +export interface PurviewDataMapClientOptions extends ClientOptions { +} + // @public export interface PurviewObjectId { displayText?: string; @@ -3655,17 +3837,23 @@ export interface QueryOptions { // @public export interface QueryResultOutput { + "@search.count"?: number; + "@search.count.approximate"?: boolean; + "@search.facets"?: SearchFacetResultValueOutput; continuationToken?: string; - searchCount?: number; - searchCountApproximate?: boolean; - searchFacets?: SearchFacetResultValueOutput; value?: Array; } +// @public +export type RelationshipCategory = "ASSOCIATION" | "AGGREGATION" | "COMPOSITION"; + +// @public +export type RelationshipCategoryOutput = "ASSOCIATION" | "AGGREGATION" | "COMPOSITION"; + // @public (undocumented) export interface RelationshipCreate { - post(options?: RelationshipCreateParameters): StreamableMethod; - put(options?: RelationshipUpdateParameters): StreamableMethod; + post(options: RelationshipCreateParameters): StreamableMethod; + put(options: RelationshipUpdateParameters): StreamableMethod; } // @public @@ -3679,7 +3867,7 @@ export interface RelationshipCreate200Response extends HttpResponse { // @public (undocumented) export interface RelationshipCreateBodyParam { // (undocumented) - body?: AtlasRelationship; + body: AtlasRelationship; } // @public (undocumented) @@ -3694,13 +3882,13 @@ export interface RelationshipCreateDefaultResponse extends HttpResponse { export type RelationshipCreateParameters = RelationshipCreateBodyParam & RequestParameters; // @public -export interface RelationshipDeleteOperation204Response extends HttpResponse { +export interface RelationshipDelete204Response extends HttpResponse { // (undocumented) status: "204"; } // @public (undocumented) -export interface RelationshipDeleteOperationDefaultResponse extends HttpResponse { +export interface RelationshipDeleteDefaultResponse extends HttpResponse { // (undocumented) body: AtlasErrorResponseOutput; // (undocumented) @@ -3712,7 +3900,7 @@ export type RelationshipDeleteParameters = RequestParameters; // @public (undocumented) export interface RelationshipGet { - delete(options?: RelationshipDeleteParameters): StreamableMethod; + delete(options?: RelationshipDeleteParameters): StreamableMethod; get(options?: RelationshipGetParameters): StreamableMethod; } @@ -3757,7 +3945,7 @@ export interface RelationshipUpdate200Response extends HttpResponse { // @public (undocumented) export interface RelationshipUpdateBodyParam { // (undocumented) - body?: AtlasRelationship; + body: AtlasRelationship; } // @public (undocumented) @@ -3783,6 +3971,12 @@ export interface ResourceLinkOutput { url?: string; } +// @public +export type RoundingMode = "UP" | "DOWN" | "CEILING" | "FLOOR" | "HALF_UP" | "HALF_DOWN" | "HALF_EVEN" | "UNNECESSARY"; + +// @public +export type RoundingModeOutput = "UP" | "DOWN" | "CEILING" | "FLOOR" | "HALF_UP" | "HALF_DOWN" | "HALF_EVEN" | "UNNECESSARY"; + // @public (undocumented) export interface Routes { (path: "/atlas/v2/entity"): EntityCreateOrUpdate; @@ -3828,7 +4022,7 @@ export interface Routes { (path: "/search/suggest"): DiscoverySuggest; (path: "/search/autocomplete"): DiscoveryAutoComplete; (path: "/atlas/v2/lineage/{guid}", guid: string): LineageGet; - (path: "/lineage/{guid}/next", guid: string): LineageGetNextPage; + (path: "/lineage/{guid}/next/", guid: string): LineageGetNextPage; (path: "/atlas/v2/lineage/uniqueAttribute/type/{typeName}", typeName: string): LineageGetByUniqueAttribute; (path: "/atlas/v2/relationship"): RelationshipCreate; (path: "/atlas/v2/relationship/guid/{guid}", guid: string): RelationshipGet; @@ -3881,8 +4075,8 @@ export interface SearchFacetResultValueOutput { // @public export interface SearchFacetSort { - count?: string; - value?: string; + count?: SearchSortOrder; + value?: SearchSortOrder; } // @public @@ -3896,6 +4090,8 @@ export interface SearchHighlightsOutput { // @public export interface SearchResultValueOutput { + "@search.highlights"?: SearchHighlightsOutput; + "@search.score"?: number; assetType?: string[]; classification?: string[]; contact?: Array; @@ -3912,20 +4108,30 @@ export interface SearchResultValueOutput { objectType?: string; owner?: string; qualifiedName?: string; - searchHighlights?: SearchHighlightsOutput; - searchScore?: number; term?: Array; termStatus?: string; termTemplate?: string[]; updateTime?: number; } +// @public +export type SearchSortOrder = "asc" | "desc"; + // @public export interface SearchTaxonomySetting { assetTypes?: string[]; facet?: SearchFacetItem; } +// @public +export type SortTypeOutput = "NONE" | "ASC" | "DESC"; + +// @public +export type StatusAtlasRelationship = "ACTIVE" | "DELETED"; + +// @public +export type StatusAtlasRelationshipOutput = "ACTIVE" | "DELETED"; + // @public export interface SuggestOptions { filter?: unknown; @@ -3940,6 +4146,8 @@ export interface SuggestResultOutput { // @public export interface SuggestResultValueOutput { + "@search.score"?: number; + "@search.text"?: string; assetType?: string[]; classification?: string[]; contact?: Array; @@ -3956,8 +4164,6 @@ export interface SuggestResultValueOutput { objectType?: string; owner?: string; qualifiedName?: string; - searchScore?: number; - searchText?: string; term?: Array; termStatus?: string; termTemplate?: string[]; @@ -3971,10 +4177,16 @@ export interface TermSearchResultValueOutput { name?: string; } +// @public +export type TermStatus = "Draft" | "Approved" | "Alert" | "Expired"; + +// @public +export type TermStatusOutput = "Draft" | "Approved" | "Alert" | "Expired"; + // @public export interface TermTemplateDef { attributeDefs?: Array; - category?: string; + category?: TypeCategory; createdBy?: string; createTime?: number; dateFormatter?: DateFormat; @@ -3993,7 +4205,7 @@ export interface TermTemplateDef { // @public export interface TermTemplateDefOutput { attributeDefs?: Array; - category?: string; + category?: TypeCategoryOutput; createdBy?: string; createTime?: number; dateFormatter?: DateFormatOutput; @@ -4054,7 +4266,7 @@ export interface TypeBulkCreate200Response extends HttpResponse { // @public (undocumented) export interface TypeBulkCreateBodyParam { // (undocumented) - body?: AtlasTypesDef; + body: AtlasTypesDef; } // @public (undocumented) @@ -4077,7 +4289,7 @@ export interface TypeBulkDelete204Response extends HttpResponse { // @public (undocumented) export interface TypeBulkDeleteBodyParam { // (undocumented) - body?: AtlasTypesDef; + body: AtlasTypesDef; } // @public (undocumented) @@ -4102,7 +4314,7 @@ export interface TypeBulkUpdate200Response extends HttpResponse { // @public (undocumented) export interface TypeBulkUpdateBodyParam { // (undocumented) - body?: AtlasTypesDef; + body: AtlasTypesDef; } // @public (undocumented) @@ -4117,13 +4329,19 @@ export interface TypeBulkUpdateDefaultResponse extends HttpResponse { export type TypeBulkUpdateParameters = TypeBulkUpdateBodyParam & RequestParameters; // @public -export interface TypeDeleteOperation204Response extends HttpResponse { +export type TypeCategory = "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE"; + +// @public +export type TypeCategoryOutput = "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE"; + +// @public +export interface TypeDelete204Response extends HttpResponse { // (undocumented) status: "204"; } // @public (undocumented) -export interface TypeDeleteOperationDefaultResponse extends HttpResponse { +export interface TypeDeleteDefaultResponse extends HttpResponse { // (undocumented) body: AtlasErrorResponseOutput; // (undocumented) @@ -4207,7 +4425,7 @@ export type TypeGetByGuidParameters = RequestParameters; // @public (undocumented) export interface TypeGetByName { - delete(options?: TypeDeleteParameters): StreamableMethod; + delete(options?: TypeDeleteParameters): StreamableMethod; get(options?: TypeGetByNameParameters): StreamableMethod; } @@ -4492,7 +4710,18 @@ export interface TypeGetTermTemplateDefByGuidDefaultResponse extends HttpRespons } // @public (undocumented) -export type TypeGetTermTemplateDefByGuidParameters = RequestParameters; +export type TypeGetTermTemplateDefByGuidParameters = TypeGetTermTemplateDefByGuidQueryParam & RequestParameters; + +// @public (undocumented) +export interface TypeGetTermTemplateDefByGuidQueryParam { + // (undocumented) + queryParameters: TypeGetTermTemplateDefByGuidQueryParamProperties; +} + +// @public (undocumented) +export interface TypeGetTermTemplateDefByGuidQueryParamProperties { + "api-version": string; +} // @public (undocumented) export interface TypeGetTermTemplateDefByName { @@ -4516,14 +4745,25 @@ export interface TypeGetTermTemplateDefByNameDefaultResponse extends HttpRespons } // @public (undocumented) -export type TypeGetTermTemplateDefByNameParameters = RequestParameters; +export type TypeGetTermTemplateDefByNameParameters = TypeGetTermTemplateDefByNameQueryParam & RequestParameters; + +// @public (undocumented) +export interface TypeGetTermTemplateDefByNameQueryParam { + // (undocumented) + queryParameters: TypeGetTermTemplateDefByNameQueryParamProperties; +} + +// @public (undocumented) +export interface TypeGetTermTemplateDefByNameQueryParamProperties { + "api-version": string; +} // @public (undocumented) export interface TypeList { - delete(options?: TypeBulkDeleteParameters): StreamableMethod; + delete(options: TypeBulkDeleteParameters): StreamableMethod; get(options?: TypeListParameters): StreamableMethod; - post(options?: TypeBulkCreateParameters): StreamableMethod; - put(options?: TypeBulkUpdateParameters): StreamableMethod; + post(options: TypeBulkCreateParameters): StreamableMethod; + put(options: TypeBulkUpdateParameters): StreamableMethod; } // @public @@ -4574,8 +4814,9 @@ export interface TypeListHeadersQueryParam { // @public (undocumented) export interface TypeListHeadersQueryParamProperties { + "api-version"?: string; includeTermTemplate?: boolean; - type?: string; + type?: TypeCategory; } // @public (undocumented) @@ -4589,8 +4830,9 @@ export interface TypeListQueryParam { // @public (undocumented) export interface TypeListQueryParamProperties { + "api-version"?: string; includeTermTemplate?: boolean; - type?: string; + type?: TypeCategory; } // (No @packageDocumentation comment for this package) diff --git a/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts b/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts index 3448f97f3429..1cccc7787d0b 100644 --- a/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts +++ b/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts @@ -114,8 +114,8 @@ import { EntityGetDefaultResponse, EntityPartialUpdateAttributeByGuid200Response, EntityPartialUpdateAttributeByGuidDefaultResponse, - EntityDeleteOperation200Response, - EntityDeleteOperationDefaultResponse, + EntityDelete200Response, + EntityDeleteDefaultResponse, EntityGetClassification200Response, EntityGetClassificationDefaultResponse, EntityRemoveClassification204Response, @@ -214,8 +214,8 @@ import { GlossaryGetDefaultResponse, GlossaryUpdate200Response, GlossaryUpdateDefaultResponse, - GlossaryDeleteOperation204Response, - GlossaryDeleteOperationDefaultResponse, + GlossaryDelete204Response, + GlossaryDeleteDefaultResponse, GlossaryListCategories200Response, GlossaryListCategoriesDefaultResponse, GlossaryListCategoriesHeaders200Response, @@ -246,8 +246,8 @@ import { RelationshipUpdateDefaultResponse, RelationshipGet200Response, RelationshipGetDefaultResponse, - RelationshipDeleteOperation204Response, - RelationshipDeleteOperationDefaultResponse, + RelationshipDelete204Response, + RelationshipDeleteDefaultResponse, TypeGetBusinessMetadataDefByGuid200Response, TypeGetBusinessMetadataDefByGuidDefaultResponse, TypeGetBusinessMetadataDefByName200Response, @@ -276,8 +276,8 @@ import { TypeGetByGuidDefaultResponse, TypeGetByName200Response, TypeGetByNameDefaultResponse, - TypeDeleteOperation204Response, - TypeDeleteOperationDefaultResponse, + TypeDelete204Response, + TypeDeleteDefaultResponse, TypeList200Response, TypeListDefaultResponse, TypeBulkCreate200Response, @@ -306,15 +306,19 @@ export interface EntityCreateOrUpdate { * For each contact type, the maximum number of contacts is 20. */ post( - options?: EntityCreateOrUpdateParameters, - ): StreamableMethod; + options: EntityCreateOrUpdateParameters, + ): StreamableMethod< + EntityCreateOrUpdate200Response | EntityCreateOrUpdateDefaultResponse + >; } export interface EntityListByGuids { /** List entities in bulk identified by its GUIDs. */ get( options: EntityListByGuidsParameters, - ): StreamableMethod; + ): StreamableMethod< + EntityListByGuids200Response | EntityListByGuidsDefaultResponse + >; /** * Create or update entities in bulk. * Existing entity is matched using its unique @@ -326,9 +330,10 @@ export interface EntityListByGuids { * is 20. */ post( - options?: EntityBulkCreateOrUpdateParameters, + options: EntityBulkCreateOrUpdateParameters, ): StreamableMethod< - EntityBulkCreateOrUpdate200Response | EntityBulkCreateOrUpdateDefaultResponse + | EntityBulkCreateOrUpdate200Response + | EntityBulkCreateOrUpdateDefaultResponse >; /** * Delete a list of entities in bulk identified by their GUIDs or unique @@ -336,14 +341,18 @@ export interface EntityListByGuids { */ delete( options: EntityBulkDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + EntityBulkDelete200Response | EntityBulkDeleteDefaultResponse + >; } export interface EntityAddClassification { /** Associate a classification to multiple entities in bulk. */ post( - options?: EntityAddClassificationParameters, - ): StreamableMethod; + options: EntityAddClassificationParameters, + ): StreamableMethod< + EntityAddClassification204Response | EntityAddClassificationDefaultResponse + >; } export interface EntityGet { @@ -367,19 +376,22 @@ export interface EntityGet { /** Delete an entity identified by its GUID. */ delete( options?: EntityDeleteParameters, - ): StreamableMethod; + ): StreamableMethod; } export interface EntityGetClassification { /** Get classification for a given entity represented by a GUID. */ get( options?: EntityGetClassificationParameters, - ): StreamableMethod; + ): StreamableMethod< + EntityGetClassification200Response | EntityGetClassificationDefaultResponse + >; /** Delete a given classification from an existing entity represented by a GUID. */ delete( options?: EntityRemoveClassificationParameters, ): StreamableMethod< - EntityRemoveClassification204Response | EntityRemoveClassificationDefaultResponse + | EntityRemoveClassification204Response + | EntityRemoveClassificationDefaultResponse >; } @@ -388,19 +400,22 @@ export interface EntityGetClassifications { get( options?: EntityGetClassificationsParameters, ): StreamableMethod< - EntityGetClassifications200Response | EntityGetClassificationsDefaultResponse + | EntityGetClassifications200Response + | EntityGetClassificationsDefaultResponse >; /** Add classifications to an existing entity represented by a GUID. */ post( options: EntityAddClassificationsParameters, ): StreamableMethod< - EntityAddClassifications204Response | EntityAddClassificationsDefaultResponse + | EntityAddClassifications204Response + | EntityAddClassificationsDefaultResponse >; /** Update classifications to an existing entity represented by a guid. */ put( options: EntityUpdateClassificationsParameters, ): StreamableMethod< - EntityUpdateClassifications204Response | EntityUpdateClassificationsDefaultResponse + | EntityUpdateClassifications204Response + | EntityUpdateClassificationsDefaultResponse >; } @@ -424,7 +439,8 @@ export interface EntityGetByUniqueAttributes { get( options?: EntityGetByUniqueAttributesParameters, ): StreamableMethod< - EntityGetByUniqueAttributes200Response | EntityGetByUniqueAttributesDefaultResponse + | EntityGetByUniqueAttributes200Response + | EntityGetByUniqueAttributesDefaultResponse >; /** * Update entity partially - Allow a subset of attributes to be updated on an @@ -445,7 +461,7 @@ export interface EntityGetByUniqueAttributes { * /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ put( - options?: EntityPartialUpdateByUniqueAttributesParameters, + options: EntityPartialUpdateByUniqueAttributesParameters, ): StreamableMethod< | EntityPartialUpdateByUniqueAttributes200Response | EntityPartialUpdateByUniqueAttributesDefaultResponse @@ -467,7 +483,8 @@ export interface EntityGetByUniqueAttributes { delete( options?: EntityDeleteByUniqueAttributeParameters, ): StreamableMethod< - EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributeDefaultResponse + | EntityDeleteByUniqueAttribute200Response + | EntityDeleteByUniqueAttributeDefaultResponse >; } @@ -504,9 +521,10 @@ export interface EntityAddClassificationsByUniqueAttribute { export interface EntityBulkSetClassifications { /** Set classifications on entities in bulk. */ post( - options?: EntityBulkSetClassificationsParameters, + options: EntityBulkSetClassificationsParameters, ): StreamableMethod< - EntityBulkSetClassifications200Response | EntityBulkSetClassificationsDefaultResponse + | EntityBulkSetClassifications200Response + | EntityBulkSetClassificationsDefaultResponse >; } @@ -534,7 +552,8 @@ export interface EntityListByUniqueAttributes { get( options?: EntityListByUniqueAttributesParameters, ): StreamableMethod< - EntityListByUniqueAttributes200Response | EntityListByUniqueAttributesDefaultResponse + | EntityListByUniqueAttributes200Response + | EntityListByUniqueAttributesDefaultResponse >; } @@ -542,7 +561,9 @@ export interface EntityGetHeader { /** Get entity header given its GUID. */ get( options?: EntityGetHeaderParameters, - ): StreamableMethod; + ): StreamableMethod< + EntityGetHeader200Response | EntityGetHeaderDefaultResponse + >; } export interface EntityRemoveBusinessMetadata { @@ -550,13 +571,15 @@ export interface EntityRemoveBusinessMetadata { delete( options: EntityRemoveBusinessMetadataParameters, ): StreamableMethod< - EntityRemoveBusinessMetadata204Response | EntityRemoveBusinessMetadataDefaultResponse + | EntityRemoveBusinessMetadata204Response + | EntityRemoveBusinessMetadataDefaultResponse >; /** Add business metadata to an entity. */ post( options: EntityAddOrUpdateBusinessMetadataParameters, ): StreamableMethod< - EntityAddOrUpdateBusinessMetadata204Response | EntityAddOrUpdateBusinessMetadataDefaultResponse + | EntityAddOrUpdateBusinessMetadata204Response + | EntityAddOrUpdateBusinessMetadataDefaultResponse >; } @@ -592,7 +615,8 @@ export interface EntityImportBusinessMetadata { post( options: EntityImportBusinessMetadataParameters, ): StreamableMethod< - EntityImportBusinessMetadata200Response | EntityImportBusinessMetadataDefaultResponse + | EntityImportBusinessMetadata200Response + | EntityImportBusinessMetadataDefaultResponse >; } @@ -600,15 +624,21 @@ export interface EntityRemoveLabels { /** Delete given labels to a given entity. */ delete( options?: EntityRemoveLabelsParameters, - ): StreamableMethod; + ): StreamableMethod< + EntityRemoveLabels204Response | EntityRemoveLabelsDefaultResponse + >; /** Set labels to a given entity. */ post( options?: EntitySetLabelsParameters, - ): StreamableMethod; + ): StreamableMethod< + EntitySetLabels204Response | EntitySetLabelsDefaultResponse + >; /** Add given labels to a given entity. */ put( options?: EntityAddLabelParameters, - ): StreamableMethod; + ): StreamableMethod< + EntityAddLabel204Response | EntityAddLabelDefaultResponse + >; } export interface EntityRemoveLabelsByUniqueAttribute { @@ -653,7 +683,8 @@ export interface EntityRemoveLabelsByUniqueAttribute { post( options?: EntitySetLabelsByUniqueAttributeParameters, ): StreamableMethod< - EntitySetLabelsByUniqueAttribute204Response | EntitySetLabelsByUniqueAttributeDefaultResponse + | EntitySetLabelsByUniqueAttribute204Response + | EntitySetLabelsByUniqueAttributeDefaultResponse >; /** * Add given labels to a given entity identified by its type and unique @@ -675,7 +706,8 @@ export interface EntityRemoveLabelsByUniqueAttribute { put( options?: EntityAddLabelsByUniqueAttributeParameters, ): StreamableMethod< - EntityAddLabelsByUniqueAttribute204Response | EntityAddLabelsByUniqueAttributeDefaultResponse + | EntityAddLabelsByUniqueAttribute204Response + | EntityAddLabelsByUniqueAttributeDefaultResponse >; } @@ -684,7 +716,8 @@ export interface EntityMoveEntitiesToCollection { post( options: EntityMoveEntitiesToCollectionParameters, ): StreamableMethod< - EntityMoveEntitiesToCollection200Response | EntityMoveEntitiesToCollectionDefaultResponse + | EntityMoveEntitiesToCollection200Response + | EntityMoveEntitiesToCollectionDefaultResponse >; } @@ -704,8 +737,10 @@ export interface GlossaryList { ): StreamableMethod; /** Create a glossary. */ post( - options?: GlossaryCreateParameters, - ): StreamableMethod; + options: GlossaryCreateParameters, + ): StreamableMethod< + GlossaryCreate200Response | GlossaryCreateDefaultResponse + >; } export interface GlossaryCreateCategories { @@ -713,30 +748,39 @@ export interface GlossaryCreateCategories { post( options: GlossaryCreateCategoriesParameters, ): StreamableMethod< - GlossaryCreateCategories200Response | GlossaryCreateCategoriesDefaultResponse + | GlossaryCreateCategories200Response + | GlossaryCreateCategoriesDefaultResponse >; } export interface GlossaryCreateCategory { /** Create a glossary category. */ post( - options?: GlossaryCreateCategoryParameters, - ): StreamableMethod; + options: GlossaryCreateCategoryParameters, + ): StreamableMethod< + GlossaryCreateCategory200Response | GlossaryCreateCategoryDefaultResponse + >; } export interface GlossaryGetCategory { /** Get specific glossary category by its GUID. */ get( options?: GlossaryGetCategoryParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryGetCategory200Response | GlossaryGetCategoryDefaultResponse + >; /** Update the given glossary category by its GUID. */ put( - options?: GlossaryUpdateCategoryParameters, - ): StreamableMethod; + options: GlossaryUpdateCategoryParameters, + ): StreamableMethod< + GlossaryUpdateCategory200Response | GlossaryUpdateCategoryDefaultResponse + >; /** Delete a glossary category. */ delete( options?: GlossaryDeleteCategoryParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryDeleteCategory204Response | GlossaryDeleteCategoryDefaultResponse + >; } export interface GlossaryPartialUpdateCategory { @@ -747,7 +791,8 @@ export interface GlossaryPartialUpdateCategory { put( options: GlossaryPartialUpdateCategoryParameters, ): StreamableMethod< - GlossaryPartialUpdateCategory200Response | GlossaryPartialUpdateCategoryDefaultResponse + | GlossaryPartialUpdateCategory200Response + | GlossaryPartialUpdateCategoryDefaultResponse >; } @@ -759,7 +804,8 @@ export interface GlossaryListRelatedCategories { get( options?: GlossaryListRelatedCategoriesParameters, ): StreamableMethod< - GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesDefaultResponse + | GlossaryListRelatedCategories200Response + | GlossaryListRelatedCategoriesDefaultResponse >; } @@ -768,30 +814,39 @@ export interface GlossaryListCategoryTerms { get( options?: GlossaryListCategoryTermsParameters, ): StreamableMethod< - GlossaryListCategoryTerms200Response | GlossaryListCategoryTermsDefaultResponse + | GlossaryListCategoryTerms200Response + | GlossaryListCategoryTermsDefaultResponse >; } export interface GlossaryCreateTerm { /** Create a glossary term. */ post( - options?: GlossaryCreateTermParameters, - ): StreamableMethod; + options: GlossaryCreateTermParameters, + ): StreamableMethod< + GlossaryCreateTerm200Response | GlossaryCreateTermDefaultResponse + >; } export interface GlossaryGetTerm { /** Get a specific glossary term by its GUID. */ get( options?: GlossaryGetTermParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryGetTerm200Response | GlossaryGetTermDefaultResponse + >; /** Update the given glossary term by its GUID. */ put( - options?: GlossaryUpdateTermParameters, - ): StreamableMethod; + options: GlossaryUpdateTermParameters, + ): StreamableMethod< + GlossaryUpdateTerm200Response | GlossaryUpdateTermDefaultResponse + >; /** Delete a glossary term. */ delete( options?: GlossaryDeleteTermParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryDeleteTerm204Response | GlossaryDeleteTermDefaultResponse + >; } export interface GlossaryPartialUpdateTerm { @@ -802,7 +857,8 @@ export interface GlossaryPartialUpdateTerm { put( options: GlossaryPartialUpdateTermParameters, ): StreamableMethod< - GlossaryPartialUpdateTerm200Response | GlossaryPartialUpdateTermDefaultResponse + | GlossaryPartialUpdateTerm200Response + | GlossaryPartialUpdateTermDefaultResponse >; } @@ -810,7 +866,9 @@ export interface GlossaryCreateTerms { /** Create glossary terms in bulk. */ post( options: GlossaryCreateTermsParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryCreateTerms200Response | GlossaryCreateTermsDefaultResponse + >; } export interface GlossaryListEntitiesAssignedWithTerm { @@ -835,7 +893,8 @@ export interface GlossaryListEntitiesAssignedWithTerm { post( options: GlossaryAssignTermToEntitiesParameters, ): StreamableMethod< - GlossaryAssignTermToEntities204Response | GlossaryAssignTermToEntitiesDefaultResponse + | GlossaryAssignTermToEntities204Response + | GlossaryAssignTermToEntitiesDefaultResponse >; /** Delete the term assignment for the given list of related objects. */ delete( @@ -854,7 +913,8 @@ export interface GlossaryListRelatedTerms { get( options?: GlossaryListRelatedTermsParameters, ): StreamableMethod< - GlossaryListRelatedTerms200Response | GlossaryListRelatedTermsDefaultResponse + | GlossaryListRelatedTerms200Response + | GlossaryListRelatedTermsDefaultResponse >; } @@ -865,15 +925,19 @@ export interface GlossaryGet { ): StreamableMethod; /** Update the given glossary. */ put( - options?: GlossaryUpdateParameters, - ): StreamableMethod; + options: GlossaryUpdateParameters, + ): StreamableMethod< + GlossaryUpdate200Response | GlossaryUpdateDefaultResponse + >; /** * Delete a glossary. Will delete underlying terms/categories together. Recommend * separate delete terms and categories. */ delete( options?: GlossaryDeleteParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryDelete204Response | GlossaryDeleteDefaultResponse + >; } export interface GlossaryListCategories { @@ -883,7 +947,9 @@ export interface GlossaryListCategories { */ get( options?: GlossaryListCategoriesParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryListCategories200Response | GlossaryListCategoriesDefaultResponse + >; } export interface GlossaryListCategoriesHeaders { @@ -894,7 +960,8 @@ export interface GlossaryListCategoriesHeaders { get( options?: GlossaryListCategoriesHeadersParameters, ): StreamableMethod< - GlossaryListCategoriesHeaders200Response | GlossaryListCategoriesHeadersDefaultResponse + | GlossaryListCategoriesHeaders200Response + | GlossaryListCategoriesHeadersDefaultResponse >; } @@ -911,7 +978,9 @@ export interface GlossaryGetDetailed { */ get( options?: GlossaryGetDetailedParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryGetDetailed200Response | GlossaryGetDetailedDefaultResponse + >; } export interface GlossaryPartialUpdate { @@ -927,7 +996,9 @@ export interface GlossaryPartialUpdate { */ put( options: GlossaryPartialUpdateParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryPartialUpdate200Response | GlossaryPartialUpdateDefaultResponse + >; } export interface GlossaryListTerms { @@ -937,7 +1008,9 @@ export interface GlossaryListTerms { */ get( options?: GlossaryListTermsParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryListTerms200Response | GlossaryListTermsDefaultResponse + >; } export interface GlossaryListTermHeaders { @@ -947,28 +1020,36 @@ export interface GlossaryListTermHeaders { */ get( options?: GlossaryListTermHeadersParameters, - ): StreamableMethod; + ): StreamableMethod< + GlossaryListTermHeaders200Response | GlossaryListTermHeadersDefaultResponse + >; } export interface DiscoveryQuery { /** Get data using search. */ post( - options?: DiscoveryQueryParameters, - ): StreamableMethod; + options: DiscoveryQueryParameters, + ): StreamableMethod< + DiscoveryQuery200Response | DiscoveryQueryDefaultResponse + >; } export interface DiscoverySuggest { /** Get search suggestions by query criteria. */ post( - options?: DiscoverySuggestParameters, - ): StreamableMethod; + options: DiscoverySuggestParameters, + ): StreamableMethod< + DiscoverySuggest200Response | DiscoverySuggestDefaultResponse + >; } export interface DiscoveryAutoComplete { /** Get auto complete options. */ post( - options?: DiscoveryAutoCompleteParameters, - ): StreamableMethod; + options: DiscoveryAutoCompleteParameters, + ): StreamableMethod< + DiscoveryAutoComplete200Response | DiscoveryAutoCompleteDefaultResponse + >; } export interface LineageGet { @@ -982,7 +1063,9 @@ export interface LineageGetNextPage { /** Return immediate next page lineage info about entity with pagination */ get( options: LineageGetNextPageParameters, - ): StreamableMethod; + ): StreamableMethod< + LineageGetNextPage200Response | LineageGetNextPageDefaultResponse + >; } export interface LineageGetByUniqueAttribute { @@ -1007,31 +1090,38 @@ export interface LineageGetByUniqueAttribute { get( options: LineageGetByUniqueAttributeParameters, ): StreamableMethod< - LineageGetByUniqueAttribute200Response | LineageGetByUniqueAttributeDefaultResponse + | LineageGetByUniqueAttribute200Response + | LineageGetByUniqueAttributeDefaultResponse >; } export interface RelationshipCreate { /** Create a new relationship between entities. */ post( - options?: RelationshipCreateParameters, - ): StreamableMethod; + options: RelationshipCreateParameters, + ): StreamableMethod< + RelationshipCreate200Response | RelationshipCreateDefaultResponse + >; /** Update an existing relationship between entities. */ put( - options?: RelationshipUpdateParameters, - ): StreamableMethod; + options: RelationshipUpdateParameters, + ): StreamableMethod< + RelationshipUpdate200Response | RelationshipUpdateDefaultResponse + >; } export interface RelationshipGet { /** Get relationship information between entities by its GUID. */ get( options?: RelationshipGetParameters, - ): StreamableMethod; + ): StreamableMethod< + RelationshipGet200Response | RelationshipGetDefaultResponse + >; /** Delete a relationship between entities by its GUID. */ delete( options?: RelationshipDeleteParameters, ): StreamableMethod< - RelationshipDeleteOperation204Response | RelationshipDeleteOperationDefaultResponse + RelationshipDelete204Response | RelationshipDeleteDefaultResponse >; } @@ -1040,7 +1130,8 @@ export interface TypeGetBusinessMetadataDefByGuid { get( options?: TypeGetBusinessMetadataDefByGuidParameters, ): StreamableMethod< - TypeGetBusinessMetadataDefByGuid200Response | TypeGetBusinessMetadataDefByGuidDefaultResponse + | TypeGetBusinessMetadataDefByGuid200Response + | TypeGetBusinessMetadataDefByGuidDefaultResponse >; } @@ -1049,7 +1140,8 @@ export interface TypeGetBusinessMetadataDefByName { get( options?: TypeGetBusinessMetadataDefByNameParameters, ): StreamableMethod< - TypeGetBusinessMetadataDefByName200Response | TypeGetBusinessMetadataDefByNameDefaultResponse + | TypeGetBusinessMetadataDefByName200Response + | TypeGetBusinessMetadataDefByNameDefaultResponse >; } @@ -1058,7 +1150,8 @@ export interface TypeGetClassificationDefByGuid { get( options?: TypeGetClassificationDefByGuidParameters, ): StreamableMethod< - TypeGetClassificationDefByGuid200Response | TypeGetClassificationDefByGuidDefaultResponse + | TypeGetClassificationDefByGuid200Response + | TypeGetClassificationDefByGuidDefaultResponse >; } @@ -1067,7 +1160,8 @@ export interface TypeGetClassificationDefByName { get( options?: TypeGetClassificationDefByNameParameters, ): StreamableMethod< - TypeGetClassificationDefByName200Response | TypeGetClassificationDefByNameDefaultResponse + | TypeGetClassificationDefByName200Response + | TypeGetClassificationDefByNameDefaultResponse >; } @@ -1075,28 +1169,36 @@ export interface TypeGetEntityDefByGuid { /** Get the Entity definition for the given GUID. */ get( options?: TypeGetEntityDefByGuidParameters, - ): StreamableMethod; + ): StreamableMethod< + TypeGetEntityDefByGuid200Response | TypeGetEntityDefByGuidDefaultResponse + >; } export interface TypeGetEntityDefByName { /** Get the entity definition by its name (unique). */ get( options?: TypeGetEntityDefByNameParameters, - ): StreamableMethod; + ): StreamableMethod< + TypeGetEntityDefByName200Response | TypeGetEntityDefByNameDefaultResponse + >; } export interface TypeGetEnumDefByGuid { /** Get the enum definition for the given GUID. */ get( options?: TypeGetEnumDefByGuidParameters, - ): StreamableMethod; + ): StreamableMethod< + TypeGetEnumDefByGuid200Response | TypeGetEnumDefByGuidDefaultResponse + >; } export interface TypeGetEnumDefByName { /** Get the enum definition by its name (unique). */ get( options?: TypeGetEnumDefByNameParameters, - ): StreamableMethod; + ): StreamableMethod< + TypeGetEnumDefByName200Response | TypeGetEnumDefByNameDefaultResponse + >; } export interface TypeGetRelationshipDefByGuid { @@ -1104,7 +1206,8 @@ export interface TypeGetRelationshipDefByGuid { get( options?: TypeGetRelationshipDefByGuidParameters, ): StreamableMethod< - TypeGetRelationshipDefByGuid200Response | TypeGetRelationshipDefByGuidDefaultResponse + | TypeGetRelationshipDefByGuid200Response + | TypeGetRelationshipDefByGuidDefaultResponse >; } @@ -1113,7 +1216,8 @@ export interface TypeGetRelationshipDefByName { get( options?: TypeGetRelationshipDefByNameParameters, ): StreamableMethod< - TypeGetRelationshipDefByName200Response | TypeGetRelationshipDefByNameDefaultResponse + | TypeGetRelationshipDefByName200Response + | TypeGetRelationshipDefByNameDefaultResponse >; } @@ -1121,14 +1225,18 @@ export interface TypeGetStructDefByGuid { /** Get the struct definition for the given GUID. */ get( options?: TypeGetStructDefByGuidParameters, - ): StreamableMethod; + ): StreamableMethod< + TypeGetStructDefByGuid200Response | TypeGetStructDefByGuidDefaultResponse + >; } export interface TypeGetStructDefByName { /** Get the struct definition by its name (unique). */ get( options?: TypeGetStructDefByNameParameters, - ): StreamableMethod; + ): StreamableMethod< + TypeGetStructDefByName200Response | TypeGetStructDefByNameDefaultResponse + >; } export interface TypeGetByGuid { @@ -1146,7 +1254,7 @@ export interface TypeGetByName { /** Delete API for type identified by its name. */ delete( options?: TypeDeleteParameters, - ): StreamableMethod; + ): StreamableMethod; } export interface TypeList { @@ -1160,26 +1268,34 @@ export interface TypeList { * Any changes to the existing definitions will be discarded. */ post( - options?: TypeBulkCreateParameters, - ): StreamableMethod; + options: TypeBulkCreateParameters, + ): StreamableMethod< + TypeBulkCreate200Response | TypeBulkCreateDefaultResponse + >; /** * Update all types in bulk, changes detected in the type definitions would be * persisted. */ put( - options?: TypeBulkUpdateParameters, - ): StreamableMethod; + options: TypeBulkUpdateParameters, + ): StreamableMethod< + TypeBulkUpdate200Response | TypeBulkUpdateDefaultResponse + >; /** Delete API for all types in bulk. */ delete( - options?: TypeBulkDeleteParameters, - ): StreamableMethod; + options: TypeBulkDeleteParameters, + ): StreamableMethod< + TypeBulkDelete204Response | TypeBulkDeleteDefaultResponse + >; } export interface TypeListHeaders { /** List all type definitions returned as a list of minimal information header. */ get( options?: TypeListHeadersParameters, - ): StreamableMethod; + ): StreamableMethod< + TypeListHeaders200Response | TypeListHeadersDefaultResponse + >; } export interface TypeGetTermTemplateDefByGuid { @@ -1187,7 +1303,8 @@ export interface TypeGetTermTemplateDefByGuid { get( options?: TypeGetTermTemplateDefByGuidParameters, ): StreamableMethod< - TypeGetTermTemplateDefByGuid200Response | TypeGetTermTemplateDefByGuidDefaultResponse + | TypeGetTermTemplateDefByGuid200Response + | TypeGetTermTemplateDefByGuidDefaultResponse >; } @@ -1196,7 +1313,8 @@ export interface TypeGetTermTemplateDefByName { get( options?: TypeGetTermTemplateDefByNameParameters, ): StreamableMethod< - TypeGetTermTemplateDefByName200Response | TypeGetTermTemplateDefByNameDefaultResponse + | TypeGetTermTemplateDefByName200Response + | TypeGetTermTemplateDefByNameDefaultResponse >; } @@ -1216,7 +1334,10 @@ export interface Routes { classificationName: string, ): EntityGetClassification; /** Resource for '/atlas/v2/entity/guid/\{guid\}/classifications' has methods for the following verbs: get, post, put */ - (path: "/atlas/v2/entity/guid/{guid}/classifications", guid: string): EntityGetClassifications; + ( + path: "/atlas/v2/entity/guid/{guid}/classifications", + guid: string, + ): EntityGetClassifications; /** Resource for '/atlas/v2/entity/uniqueAttribute/type/\{typeName\}' has methods for the following verbs: get, put, delete */ ( path: "/atlas/v2/entity/uniqueAttribute/type/{typeName}", @@ -1234,7 +1355,9 @@ export interface Routes { typeName: string, ): EntityAddClassificationsByUniqueAttribute; /** Resource for '/atlas/v2/entity/bulk/setClassifications' has methods for the following verbs: post */ - (path: "/atlas/v2/entity/bulk/setClassifications"): EntityBulkSetClassifications; + ( + path: "/atlas/v2/entity/bulk/setClassifications", + ): EntityBulkSetClassifications; /** Resource for '/atlas/v2/entity/bulk/uniqueAttribute/type/\{typeName\}' has methods for the following verbs: get */ ( path: "/atlas/v2/entity/bulk/uniqueAttribute/type/{typeName}", @@ -1258,9 +1381,14 @@ export interface Routes { path: "/atlas/v2/entity/businessmetadata/import/template", ): EntityGetSampleBusinessMetadataTemplate; /** Resource for '/atlas/v2/entity/businessmetadata/import' has methods for the following verbs: post */ - (path: "/atlas/v2/entity/businessmetadata/import"): EntityImportBusinessMetadata; + ( + path: "/atlas/v2/entity/businessmetadata/import", + ): EntityImportBusinessMetadata; /** Resource for '/atlas/v2/entity/guid/\{guid\}/labels' has methods for the following verbs: delete, post, put */ - (path: "/atlas/v2/entity/guid/{guid}/labels", guid: string): EntityRemoveLabels; + ( + path: "/atlas/v2/entity/guid/{guid}/labels", + guid: string, + ): EntityRemoveLabels; /** Resource for '/atlas/v2/entity/uniqueAttribute/type/\{typeName\}/labels' has methods for the following verbs: delete, post, put */ ( path: "/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels", @@ -1275,7 +1403,10 @@ export interface Routes { /** Resource for '/atlas/v2/glossary/category' has methods for the following verbs: post */ (path: "/atlas/v2/glossary/category"): GlossaryCreateCategory; /** Resource for '/atlas/v2/glossary/category/\{categoryId\}' has methods for the following verbs: get, put, delete */ - (path: "/atlas/v2/glossary/category/{categoryId}", categoryId: string): GlossaryGetCategory; + ( + path: "/atlas/v2/glossary/category/{categoryId}", + categoryId: string, + ): GlossaryGetCategory; /** Resource for '/atlas/v2/glossary/category/\{categoryId\}/partial' has methods for the following verbs: put */ ( path: "/atlas/v2/glossary/category/{categoryId}/partial", @@ -1296,7 +1427,10 @@ export interface Routes { /** Resource for '/atlas/v2/glossary/term/\{termId\}' has methods for the following verbs: get, put, delete */ (path: "/atlas/v2/glossary/term/{termId}", termId: string): GlossaryGetTerm; /** Resource for '/atlas/v2/glossary/term/\{termId\}/partial' has methods for the following verbs: put */ - (path: "/atlas/v2/glossary/term/{termId}/partial", termId: string): GlossaryPartialUpdateTerm; + ( + path: "/atlas/v2/glossary/term/{termId}/partial", + termId: string, + ): GlossaryPartialUpdateTerm; /** Resource for '/atlas/v2/glossary/terms' has methods for the following verbs: post */ (path: "/atlas/v2/glossary/terms"): GlossaryCreateTerms; /** Resource for '/atlas/v2/glossary/terms/\{termId\}/assignedEntities' has methods for the following verbs: get, post, delete */ @@ -1305,22 +1439,37 @@ export interface Routes { termId: string, ): GlossaryListEntitiesAssignedWithTerm; /** Resource for '/atlas/v2/glossary/terms/\{termId\}/related' has methods for the following verbs: get */ - (path: "/atlas/v2/glossary/terms/{termId}/related", termId: string): GlossaryListRelatedTerms; + ( + path: "/atlas/v2/glossary/terms/{termId}/related", + termId: string, + ): GlossaryListRelatedTerms; /** Resource for '/atlas/v2/glossary/\{glossaryId\}' has methods for the following verbs: get, put, delete */ (path: "/atlas/v2/glossary/{glossaryId}", glossaryId: string): GlossaryGet; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/categories' has methods for the following verbs: get */ - (path: "/atlas/v2/glossary/{glossaryId}/categories", glossaryId: string): GlossaryListCategories; + ( + path: "/atlas/v2/glossary/{glossaryId}/categories", + glossaryId: string, + ): GlossaryListCategories; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/categories/headers' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/{glossaryId}/categories/headers", glossaryId: string, ): GlossaryListCategoriesHeaders; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/detailed' has methods for the following verbs: get */ - (path: "/atlas/v2/glossary/{glossaryId}/detailed", glossaryId: string): GlossaryGetDetailed; + ( + path: "/atlas/v2/glossary/{glossaryId}/detailed", + glossaryId: string, + ): GlossaryGetDetailed; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/partial' has methods for the following verbs: put */ - (path: "/atlas/v2/glossary/{glossaryId}/partial", glossaryId: string): GlossaryPartialUpdate; + ( + path: "/atlas/v2/glossary/{glossaryId}/partial", + glossaryId: string, + ): GlossaryPartialUpdate; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/terms' has methods for the following verbs: get */ - (path: "/atlas/v2/glossary/{glossaryId}/terms", glossaryId: string): GlossaryListTerms; + ( + path: "/atlas/v2/glossary/{glossaryId}/terms", + glossaryId: string, + ): GlossaryListTerms; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/terms/headers' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/{glossaryId}/terms/headers", @@ -1334,8 +1483,8 @@ export interface Routes { (path: "/search/autocomplete"): DiscoveryAutoComplete; /** Resource for '/atlas/v2/lineage/\{guid\}' has methods for the following verbs: get */ (path: "/atlas/v2/lineage/{guid}", guid: string): LineageGet; - /** Resource for '/lineage/\{guid\}/next' has methods for the following verbs: get */ - (path: "/lineage/{guid}/next", guid: string): LineageGetNextPage; + /** Resource for '/lineage/\{guid\}/next/' has methods for the following verbs: get */ + (path: "/lineage/{guid}/next/", guid: string): LineageGetNextPage; /** Resource for '/atlas/v2/lineage/uniqueAttribute/type/\{typeName\}' has methods for the following verbs: get */ ( path: "/atlas/v2/lineage/uniqueAttribute/type/{typeName}", @@ -1366,21 +1515,45 @@ export interface Routes { name: string, ): TypeGetClassificationDefByName; /** Resource for '/atlas/v2/types/entitydef/guid/\{guid\}' has methods for the following verbs: get */ - (path: "/atlas/v2/types/entitydef/guid/{guid}", guid: string): TypeGetEntityDefByGuid; + ( + path: "/atlas/v2/types/entitydef/guid/{guid}", + guid: string, + ): TypeGetEntityDefByGuid; /** Resource for '/atlas/v2/types/entitydef/name/\{name\}' has methods for the following verbs: get */ - (path: "/atlas/v2/types/entitydef/name/{name}", name: string): TypeGetEntityDefByName; + ( + path: "/atlas/v2/types/entitydef/name/{name}", + name: string, + ): TypeGetEntityDefByName; /** Resource for '/atlas/v2/types/enumdef/guid/\{guid\}' has methods for the following verbs: get */ - (path: "/atlas/v2/types/enumdef/guid/{guid}", guid: string): TypeGetEnumDefByGuid; + ( + path: "/atlas/v2/types/enumdef/guid/{guid}", + guid: string, + ): TypeGetEnumDefByGuid; /** Resource for '/atlas/v2/types/enumdef/name/\{name\}' has methods for the following verbs: get */ - (path: "/atlas/v2/types/enumdef/name/{name}", name: string): TypeGetEnumDefByName; + ( + path: "/atlas/v2/types/enumdef/name/{name}", + name: string, + ): TypeGetEnumDefByName; /** Resource for '/atlas/v2/types/relationshipdef/guid/\{guid\}' has methods for the following verbs: get */ - (path: "/atlas/v2/types/relationshipdef/guid/{guid}", guid: string): TypeGetRelationshipDefByGuid; + ( + path: "/atlas/v2/types/relationshipdef/guid/{guid}", + guid: string, + ): TypeGetRelationshipDefByGuid; /** Resource for '/atlas/v2/types/relationshipdef/name/\{name\}' has methods for the following verbs: get */ - (path: "/atlas/v2/types/relationshipdef/name/{name}", name: string): TypeGetRelationshipDefByName; + ( + path: "/atlas/v2/types/relationshipdef/name/{name}", + name: string, + ): TypeGetRelationshipDefByName; /** Resource for '/atlas/v2/types/structdef/guid/\{guid\}' has methods for the following verbs: get */ - (path: "/atlas/v2/types/structdef/guid/{guid}", guid: string): TypeGetStructDefByGuid; + ( + path: "/atlas/v2/types/structdef/guid/{guid}", + guid: string, + ): TypeGetStructDefByGuid; /** Resource for '/atlas/v2/types/structdef/name/\{name\}' has methods for the following verbs: get */ - (path: "/atlas/v2/types/structdef/name/{name}", name: string): TypeGetStructDefByName; + ( + path: "/atlas/v2/types/structdef/name/{name}", + name: string, + ): TypeGetStructDefByName; /** Resource for '/atlas/v2/types/typedef/guid/\{guid\}' has methods for the following verbs: get */ (path: "/atlas/v2/types/typedef/guid/{guid}", guid: string): TypeGetByGuid; /** Resource for '/atlas/v2/types/typedef/name/\{name\}' has methods for the following verbs: get, delete */ @@ -1390,9 +1563,15 @@ export interface Routes { /** Resource for '/atlas/v2/types/typedefs/headers' has methods for the following verbs: get */ (path: "/atlas/v2/types/typedefs/headers"): TypeListHeaders; /** Resource for '/types/termtemplatedef/guid/\{guid\}' has methods for the following verbs: get */ - (path: "/types/termtemplatedef/guid/{guid}", guid: string): TypeGetTermTemplateDefByGuid; + ( + path: "/types/termtemplatedef/guid/{guid}", + guid: string, + ): TypeGetTermTemplateDefByGuid; /** Resource for '/types/termtemplatedef/name/\{name\}' has methods for the following verbs: get */ - (path: "/types/termtemplatedef/name/{name}", name: string): TypeGetTermTemplateDefByName; + ( + path: "/types/termtemplatedef/name/{name}", + name: string, + ): TypeGetTermTemplateDefByName; } export type PurviewDataMapClient = Client & { diff --git a/sdk/purview/purview-datamap-rest/src/isUnexpected.ts b/sdk/purview/purview-datamap-rest/src/isUnexpected.ts index 4cb49067b3b8..56540cbff8ff 100644 --- a/sdk/purview/purview-datamap-rest/src/isUnexpected.ts +++ b/sdk/purview/purview-datamap-rest/src/isUnexpected.ts @@ -16,8 +16,8 @@ import { EntityGetDefaultResponse, EntityPartialUpdateAttributeByGuid200Response, EntityPartialUpdateAttributeByGuidDefaultResponse, - EntityDeleteOperation200Response, - EntityDeleteOperationDefaultResponse, + EntityDelete200Response, + EntityDeleteDefaultResponse, EntityGetClassification200Response, EntityGetClassificationDefaultResponse, EntityRemoveClassification204Response, @@ -116,8 +116,8 @@ import { GlossaryGetDefaultResponse, GlossaryUpdate200Response, GlossaryUpdateDefaultResponse, - GlossaryDeleteOperation204Response, - GlossaryDeleteOperationDefaultResponse, + GlossaryDelete204Response, + GlossaryDeleteDefaultResponse, GlossaryListCategories200Response, GlossaryListCategoriesDefaultResponse, GlossaryListCategoriesHeaders200Response, @@ -148,8 +148,8 @@ import { RelationshipUpdateDefaultResponse, RelationshipGet200Response, RelationshipGetDefaultResponse, - RelationshipDeleteOperation204Response, - RelationshipDeleteOperationDefaultResponse, + RelationshipDelete204Response, + RelationshipDeleteDefaultResponse, TypeGetBusinessMetadataDefByGuid200Response, TypeGetBusinessMetadataDefByGuidDefaultResponse, TypeGetBusinessMetadataDefByName200Response, @@ -178,8 +178,8 @@ import { TypeGetByGuidDefaultResponse, TypeGetByName200Response, TypeGetByNameDefaultResponse, - TypeDeleteOperation204Response, - TypeDeleteOperationDefaultResponse, + TypeDelete204Response, + TypeDeleteDefaultResponse, TypeList200Response, TypeListDefaultResponse, TypeBulkCreate200Response, @@ -205,26 +205,36 @@ const responseMap: Record = { "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}/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}": [ + "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/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/{businessMetadataName}": ["204"], - "POST /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}": ["204"], + "DELETE /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}": + ["204"], + "POST /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}": [ + "204", + ], "GET /atlas/v2/entity/businessmetadata/import/template": ["200"], "POST /atlas/v2/entity/businessmetadata/import": ["200"], "DELETE /atlas/v2/entity/guid/{guid}/labels": ["204"], @@ -267,7 +277,7 @@ const responseMap: Record = { "POST /search/suggest": ["200"], "POST /search/autocomplete": ["200"], "GET /atlas/v2/lineage/{guid}": ["200"], - "GET /lineage/{guid}/next": ["200"], + "GET /lineage/{guid}/next/": ["200"], "GET /atlas/v2/lineage/uniqueAttribute/type/{typeName}": ["200"], "POST /atlas/v2/relationship": ["200"], "PUT /atlas/v2/relationship": ["200"], @@ -298,19 +308,25 @@ const responseMap: Record = { }; export function isUnexpected( - response: EntityCreateOrUpdate200Response | EntityCreateOrUpdateDefaultResponse, + response: + | EntityCreateOrUpdate200Response + | EntityCreateOrUpdateDefaultResponse, ): response is EntityCreateOrUpdateDefaultResponse; export function isUnexpected( response: EntityListByGuids200Response | EntityListByGuidsDefaultResponse, ): response is EntityListByGuidsDefaultResponse; export function isUnexpected( - response: EntityBulkCreateOrUpdate200Response | EntityBulkCreateOrUpdateDefaultResponse, + response: + | EntityBulkCreateOrUpdate200Response + | EntityBulkCreateOrUpdateDefaultResponse, ): response is EntityBulkCreateOrUpdateDefaultResponse; export function isUnexpected( response: EntityBulkDelete200Response | EntityBulkDeleteDefaultResponse, ): response is EntityBulkDeleteDefaultResponse; export function isUnexpected( - response: EntityAddClassification204Response | EntityAddClassificationDefaultResponse, + response: + | EntityAddClassification204Response + | EntityAddClassificationDefaultResponse, ): response is EntityAddClassificationDefaultResponse; export function isUnexpected( response: EntityGet200Response | EntityGetDefaultResponse, @@ -321,25 +337,37 @@ export function isUnexpected( | EntityPartialUpdateAttributeByGuidDefaultResponse, ): response is EntityPartialUpdateAttributeByGuidDefaultResponse; export function isUnexpected( - response: EntityDeleteOperation200Response | EntityDeleteOperationDefaultResponse, -): response is EntityDeleteOperationDefaultResponse; + response: EntityDelete200Response | EntityDeleteDefaultResponse, +): response is EntityDeleteDefaultResponse; export function isUnexpected( - response: EntityGetClassification200Response | EntityGetClassificationDefaultResponse, + response: + | EntityGetClassification200Response + | EntityGetClassificationDefaultResponse, ): response is EntityGetClassificationDefaultResponse; export function isUnexpected( - response: EntityRemoveClassification204Response | EntityRemoveClassificationDefaultResponse, + response: + | EntityRemoveClassification204Response + | EntityRemoveClassificationDefaultResponse, ): response is EntityRemoveClassificationDefaultResponse; export function isUnexpected( - response: EntityGetClassifications200Response | EntityGetClassificationsDefaultResponse, + response: + | EntityGetClassifications200Response + | EntityGetClassificationsDefaultResponse, ): response is EntityGetClassificationsDefaultResponse; export function isUnexpected( - response: EntityAddClassifications204Response | EntityAddClassificationsDefaultResponse, + response: + | EntityAddClassifications204Response + | EntityAddClassificationsDefaultResponse, ): response is EntityAddClassificationsDefaultResponse; export function isUnexpected( - response: EntityUpdateClassifications204Response | EntityUpdateClassificationsDefaultResponse, + response: + | EntityUpdateClassifications204Response + | EntityUpdateClassificationsDefaultResponse, ): response is EntityUpdateClassificationsDefaultResponse; export function isUnexpected( - response: EntityGetByUniqueAttributes200Response | EntityGetByUniqueAttributesDefaultResponse, + response: + | EntityGetByUniqueAttributes200Response + | EntityGetByUniqueAttributesDefaultResponse, ): response is EntityGetByUniqueAttributesDefaultResponse; export function isUnexpected( response: @@ -347,7 +375,9 @@ export function isUnexpected( | EntityPartialUpdateByUniqueAttributesDefaultResponse, ): response is EntityPartialUpdateByUniqueAttributesDefaultResponse; export function isUnexpected( - response: EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributeDefaultResponse, + response: + | EntityDeleteByUniqueAttribute200Response + | EntityDeleteByUniqueAttributeDefaultResponse, ): response is EntityDeleteByUniqueAttributeDefaultResponse; export function isUnexpected( response: @@ -365,16 +395,22 @@ export function isUnexpected( | EntityUpdateClassificationsByUniqueAttributeDefaultResponse, ): response is EntityUpdateClassificationsByUniqueAttributeDefaultResponse; export function isUnexpected( - response: EntityBulkSetClassifications200Response | EntityBulkSetClassificationsDefaultResponse, + response: + | EntityBulkSetClassifications200Response + | EntityBulkSetClassificationsDefaultResponse, ): response is EntityBulkSetClassificationsDefaultResponse; export function isUnexpected( - response: EntityListByUniqueAttributes200Response | EntityListByUniqueAttributesDefaultResponse, + response: + | EntityListByUniqueAttributes200Response + | EntityListByUniqueAttributesDefaultResponse, ): response is EntityListByUniqueAttributesDefaultResponse; export function isUnexpected( response: EntityGetHeader200Response | EntityGetHeaderDefaultResponse, ): response is EntityGetHeaderDefaultResponse; export function isUnexpected( - response: EntityRemoveBusinessMetadata204Response | EntityRemoveBusinessMetadataDefaultResponse, + response: + | EntityRemoveBusinessMetadata204Response + | EntityRemoveBusinessMetadataDefaultResponse, ): response is EntityRemoveBusinessMetadataDefaultResponse; export function isUnexpected( response: @@ -397,7 +433,9 @@ export function isUnexpected( | EntityGetSampleBusinessMetadataTemplateDefaultResponse, ): response is EntityGetSampleBusinessMetadataTemplateDefaultResponse; export function isUnexpected( - response: EntityImportBusinessMetadata200Response | EntityImportBusinessMetadataDefaultResponse, + response: + | EntityImportBusinessMetadata200Response + | EntityImportBusinessMetadataDefaultResponse, ): response is EntityImportBusinessMetadataDefaultResponse; export function isUnexpected( response: EntityRemoveLabels204Response | EntityRemoveLabelsDefaultResponse, @@ -435,28 +473,42 @@ export function isUnexpected( response: GlossaryCreate200Response | GlossaryCreateDefaultResponse, ): response is GlossaryCreateDefaultResponse; export function isUnexpected( - response: GlossaryCreateCategories200Response | GlossaryCreateCategoriesDefaultResponse, + response: + | GlossaryCreateCategories200Response + | GlossaryCreateCategoriesDefaultResponse, ): response is GlossaryCreateCategoriesDefaultResponse; export function isUnexpected( - response: GlossaryCreateCategory200Response | GlossaryCreateCategoryDefaultResponse, + response: + | GlossaryCreateCategory200Response + | GlossaryCreateCategoryDefaultResponse, ): response is GlossaryCreateCategoryDefaultResponse; export function isUnexpected( response: GlossaryGetCategory200Response | GlossaryGetCategoryDefaultResponse, ): response is GlossaryGetCategoryDefaultResponse; export function isUnexpected( - response: GlossaryUpdateCategory200Response | GlossaryUpdateCategoryDefaultResponse, + response: + | GlossaryUpdateCategory200Response + | GlossaryUpdateCategoryDefaultResponse, ): response is GlossaryUpdateCategoryDefaultResponse; export function isUnexpected( - response: GlossaryDeleteCategory204Response | GlossaryDeleteCategoryDefaultResponse, + response: + | GlossaryDeleteCategory204Response + | GlossaryDeleteCategoryDefaultResponse, ): response is GlossaryDeleteCategoryDefaultResponse; export function isUnexpected( - response: GlossaryPartialUpdateCategory200Response | GlossaryPartialUpdateCategoryDefaultResponse, + response: + | GlossaryPartialUpdateCategory200Response + | GlossaryPartialUpdateCategoryDefaultResponse, ): response is GlossaryPartialUpdateCategoryDefaultResponse; export function isUnexpected( - response: GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesDefaultResponse, + response: + | GlossaryListRelatedCategories200Response + | GlossaryListRelatedCategoriesDefaultResponse, ): response is GlossaryListRelatedCategoriesDefaultResponse; export function isUnexpected( - response: GlossaryListCategoryTerms200Response | GlossaryListCategoryTermsDefaultResponse, + response: + | GlossaryListCategoryTerms200Response + | GlossaryListCategoryTermsDefaultResponse, ): response is GlossaryListCategoryTermsDefaultResponse; export function isUnexpected( response: GlossaryCreateTerm200Response | GlossaryCreateTermDefaultResponse, @@ -471,7 +523,9 @@ export function isUnexpected( response: GlossaryDeleteTerm204Response | GlossaryDeleteTermDefaultResponse, ): response is GlossaryDeleteTermDefaultResponse; export function isUnexpected( - response: GlossaryPartialUpdateTerm200Response | GlossaryPartialUpdateTermDefaultResponse, + response: + | GlossaryPartialUpdateTerm200Response + | GlossaryPartialUpdateTermDefaultResponse, ): response is GlossaryPartialUpdateTermDefaultResponse; export function isUnexpected( response: GlossaryCreateTerms200Response | GlossaryCreateTermsDefaultResponse, @@ -482,7 +536,9 @@ export function isUnexpected( | GlossaryListEntitiesAssignedWithTermDefaultResponse, ): response is GlossaryListEntitiesAssignedWithTermDefaultResponse; export function isUnexpected( - response: GlossaryAssignTermToEntities204Response | GlossaryAssignTermToEntitiesDefaultResponse, + response: + | GlossaryAssignTermToEntities204Response + | GlossaryAssignTermToEntitiesDefaultResponse, ): response is GlossaryAssignTermToEntitiesDefaultResponse; export function isUnexpected( response: @@ -490,7 +546,9 @@ export function isUnexpected( | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse, ): response is GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse; export function isUnexpected( - response: GlossaryListRelatedTerms200Response | GlossaryListRelatedTermsDefaultResponse, + response: + | GlossaryListRelatedTerms200Response + | GlossaryListRelatedTermsDefaultResponse, ): response is GlossaryListRelatedTermsDefaultResponse; export function isUnexpected( response: GlossaryGet200Response | GlossaryGetDefaultResponse, @@ -499,25 +557,33 @@ export function isUnexpected( response: GlossaryUpdate200Response | GlossaryUpdateDefaultResponse, ): response is GlossaryUpdateDefaultResponse; export function isUnexpected( - response: GlossaryDeleteOperation204Response | GlossaryDeleteOperationDefaultResponse, -): response is GlossaryDeleteOperationDefaultResponse; + response: GlossaryDelete204Response | GlossaryDeleteDefaultResponse, +): response is GlossaryDeleteDefaultResponse; export function isUnexpected( - response: GlossaryListCategories200Response | GlossaryListCategoriesDefaultResponse, + response: + | GlossaryListCategories200Response + | GlossaryListCategoriesDefaultResponse, ): response is GlossaryListCategoriesDefaultResponse; export function isUnexpected( - response: GlossaryListCategoriesHeaders200Response | GlossaryListCategoriesHeadersDefaultResponse, + response: + | GlossaryListCategoriesHeaders200Response + | GlossaryListCategoriesHeadersDefaultResponse, ): response is GlossaryListCategoriesHeadersDefaultResponse; export function isUnexpected( response: GlossaryGetDetailed200Response | GlossaryGetDetailedDefaultResponse, ): response is GlossaryGetDetailedDefaultResponse; export function isUnexpected( - response: GlossaryPartialUpdate200Response | GlossaryPartialUpdateDefaultResponse, + response: + | GlossaryPartialUpdate200Response + | GlossaryPartialUpdateDefaultResponse, ): response is GlossaryPartialUpdateDefaultResponse; export function isUnexpected( response: GlossaryListTerms200Response | GlossaryListTermsDefaultResponse, ): response is GlossaryListTermsDefaultResponse; export function isUnexpected( - response: GlossaryListTermHeaders200Response | GlossaryListTermHeadersDefaultResponse, + response: + | GlossaryListTermHeaders200Response + | GlossaryListTermHeadersDefaultResponse, ): response is GlossaryListTermHeadersDefaultResponse; export function isUnexpected( response: DiscoveryQuery200Response | DiscoveryQueryDefaultResponse, @@ -526,7 +592,9 @@ export function isUnexpected( response: DiscoverySuggest200Response | DiscoverySuggestDefaultResponse, ): response is DiscoverySuggestDefaultResponse; export function isUnexpected( - response: DiscoveryAutoComplete200Response | DiscoveryAutoCompleteDefaultResponse, + response: + | DiscoveryAutoComplete200Response + | DiscoveryAutoCompleteDefaultResponse, ): response is DiscoveryAutoCompleteDefaultResponse; export function isUnexpected( response: LineageGet200Response | LineageGetDefaultResponse, @@ -535,7 +603,9 @@ export function isUnexpected( response: LineageGetNextPage200Response | LineageGetNextPageDefaultResponse, ): response is LineageGetNextPageDefaultResponse; export function isUnexpected( - response: LineageGetByUniqueAttribute200Response | LineageGetByUniqueAttributeDefaultResponse, + response: + | LineageGetByUniqueAttribute200Response + | LineageGetByUniqueAttributeDefaultResponse, ): response is LineageGetByUniqueAttributeDefaultResponse; export function isUnexpected( response: RelationshipCreate200Response | RelationshipCreateDefaultResponse, @@ -547,8 +617,8 @@ export function isUnexpected( response: RelationshipGet200Response | RelationshipGetDefaultResponse, ): response is RelationshipGetDefaultResponse; export function isUnexpected( - response: RelationshipDeleteOperation204Response | RelationshipDeleteOperationDefaultResponse, -): response is RelationshipDeleteOperationDefaultResponse; + response: RelationshipDelete204Response | RelationshipDeleteDefaultResponse, +): response is RelationshipDeleteDefaultResponse; export function isUnexpected( response: | TypeGetBusinessMetadataDefByGuid200Response @@ -570,28 +640,44 @@ export function isUnexpected( | TypeGetClassificationDefByNameDefaultResponse, ): response is TypeGetClassificationDefByNameDefaultResponse; export function isUnexpected( - response: TypeGetEntityDefByGuid200Response | TypeGetEntityDefByGuidDefaultResponse, + response: + | TypeGetEntityDefByGuid200Response + | TypeGetEntityDefByGuidDefaultResponse, ): response is TypeGetEntityDefByGuidDefaultResponse; export function isUnexpected( - response: TypeGetEntityDefByName200Response | TypeGetEntityDefByNameDefaultResponse, + response: + | TypeGetEntityDefByName200Response + | TypeGetEntityDefByNameDefaultResponse, ): response is TypeGetEntityDefByNameDefaultResponse; export function isUnexpected( - response: TypeGetEnumDefByGuid200Response | TypeGetEnumDefByGuidDefaultResponse, + response: + | TypeGetEnumDefByGuid200Response + | TypeGetEnumDefByGuidDefaultResponse, ): response is TypeGetEnumDefByGuidDefaultResponse; export function isUnexpected( - response: TypeGetEnumDefByName200Response | TypeGetEnumDefByNameDefaultResponse, + response: + | TypeGetEnumDefByName200Response + | TypeGetEnumDefByNameDefaultResponse, ): response is TypeGetEnumDefByNameDefaultResponse; export function isUnexpected( - response: TypeGetRelationshipDefByGuid200Response | TypeGetRelationshipDefByGuidDefaultResponse, + response: + | TypeGetRelationshipDefByGuid200Response + | TypeGetRelationshipDefByGuidDefaultResponse, ): response is TypeGetRelationshipDefByGuidDefaultResponse; export function isUnexpected( - response: TypeGetRelationshipDefByName200Response | TypeGetRelationshipDefByNameDefaultResponse, + response: + | TypeGetRelationshipDefByName200Response + | TypeGetRelationshipDefByNameDefaultResponse, ): response is TypeGetRelationshipDefByNameDefaultResponse; export function isUnexpected( - response: TypeGetStructDefByGuid200Response | TypeGetStructDefByGuidDefaultResponse, + response: + | TypeGetStructDefByGuid200Response + | TypeGetStructDefByGuidDefaultResponse, ): response is TypeGetStructDefByGuidDefaultResponse; export function isUnexpected( - response: TypeGetStructDefByName200Response | TypeGetStructDefByNameDefaultResponse, + response: + | TypeGetStructDefByName200Response + | TypeGetStructDefByNameDefaultResponse, ): response is TypeGetStructDefByNameDefaultResponse; export function isUnexpected( response: TypeGetByGuid200Response | TypeGetByGuidDefaultResponse, @@ -600,8 +686,8 @@ export function isUnexpected( response: TypeGetByName200Response | TypeGetByNameDefaultResponse, ): response is TypeGetByNameDefaultResponse; export function isUnexpected( - response: TypeDeleteOperation204Response | TypeDeleteOperationDefaultResponse, -): response is TypeDeleteOperationDefaultResponse; + response: TypeDelete204Response | TypeDeleteDefaultResponse, +): response is TypeDeleteDefaultResponse; export function isUnexpected( response: TypeList200Response | TypeListDefaultResponse, ): response is TypeListDefaultResponse; @@ -618,10 +704,14 @@ export function isUnexpected( response: TypeListHeaders200Response | TypeListHeadersDefaultResponse, ): response is TypeListHeadersDefaultResponse; export function isUnexpected( - response: TypeGetTermTemplateDefByGuid200Response | TypeGetTermTemplateDefByGuidDefaultResponse, + response: + | TypeGetTermTemplateDefByGuid200Response + | TypeGetTermTemplateDefByGuidDefaultResponse, ): response is TypeGetTermTemplateDefByGuidDefaultResponse; export function isUnexpected( - response: TypeGetTermTemplateDefByName200Response | TypeGetTermTemplateDefByNameDefaultResponse, + response: + | TypeGetTermTemplateDefByName200Response + | TypeGetTermTemplateDefByNameDefaultResponse, ): response is TypeGetTermTemplateDefByNameDefaultResponse; export function isUnexpected( response: @@ -639,8 +729,8 @@ export function isUnexpected( | EntityGetDefaultResponse | EntityPartialUpdateAttributeByGuid200Response | EntityPartialUpdateAttributeByGuidDefaultResponse - | EntityDeleteOperation200Response - | EntityDeleteOperationDefaultResponse + | EntityDelete200Response + | EntityDeleteDefaultResponse | EntityGetClassification200Response | EntityGetClassificationDefaultResponse | EntityRemoveClassification204Response @@ -739,8 +829,8 @@ export function isUnexpected( | GlossaryGetDefaultResponse | GlossaryUpdate200Response | GlossaryUpdateDefaultResponse - | GlossaryDeleteOperation204Response - | GlossaryDeleteOperationDefaultResponse + | GlossaryDelete204Response + | GlossaryDeleteDefaultResponse | GlossaryListCategories200Response | GlossaryListCategoriesDefaultResponse | GlossaryListCategoriesHeaders200Response @@ -771,8 +861,8 @@ export function isUnexpected( | RelationshipUpdateDefaultResponse | RelationshipGet200Response | RelationshipGetDefaultResponse - | RelationshipDeleteOperation204Response - | RelationshipDeleteOperationDefaultResponse + | RelationshipDelete204Response + | RelationshipDeleteDefaultResponse | TypeGetBusinessMetadataDefByGuid200Response | TypeGetBusinessMetadataDefByGuidDefaultResponse | TypeGetBusinessMetadataDefByName200Response @@ -801,8 +891,8 @@ export function isUnexpected( | TypeGetByGuidDefaultResponse | TypeGetByName200Response | TypeGetByNameDefaultResponse - | TypeDeleteOperation204Response - | TypeDeleteOperationDefaultResponse + | TypeDelete204Response + | TypeDeleteDefaultResponse | TypeList200Response | TypeListDefaultResponse | TypeBulkCreate200Response @@ -825,7 +915,7 @@ export function isUnexpected( | EntityAddClassificationDefaultResponse | EntityGetDefaultResponse | EntityPartialUpdateAttributeByGuidDefaultResponse - | EntityDeleteOperationDefaultResponse + | EntityDeleteDefaultResponse | EntityGetClassificationDefaultResponse | EntityRemoveClassificationDefaultResponse | EntityGetClassificationsDefaultResponse @@ -875,7 +965,7 @@ export function isUnexpected( | GlossaryListRelatedTermsDefaultResponse | GlossaryGetDefaultResponse | GlossaryUpdateDefaultResponse - | GlossaryDeleteOperationDefaultResponse + | GlossaryDeleteDefaultResponse | GlossaryListCategoriesDefaultResponse | GlossaryListCategoriesHeadersDefaultResponse | GlossaryGetDetailedDefaultResponse @@ -891,7 +981,7 @@ export function isUnexpected( | RelationshipCreateDefaultResponse | RelationshipUpdateDefaultResponse | RelationshipGetDefaultResponse - | RelationshipDeleteOperationDefaultResponse + | RelationshipDeleteDefaultResponse | TypeGetBusinessMetadataDefByGuidDefaultResponse | TypeGetBusinessMetadataDefByNameDefaultResponse | TypeGetClassificationDefByGuidDefaultResponse @@ -906,7 +996,7 @@ export function isUnexpected( | TypeGetStructDefByNameDefaultResponse | TypeGetByGuidDefaultResponse | TypeGetByNameDefaultResponse - | TypeDeleteOperationDefaultResponse + | TypeDeleteDefaultResponse | TypeListDefaultResponse | TypeBulkCreateDefaultResponse | TypeBulkUpdateDefaultResponse @@ -946,17 +1036,24 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // 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) { + 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] || "", - ); + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); if (!isMatched) { found = false; diff --git a/sdk/purview/purview-datamap-rest/src/models.ts b/sdk/purview/purview-datamap-rest/src/models.ts index d01c2b3b99f6..05b5f5f0545a 100644 --- a/sdk/purview/purview-datamap-rest/src/models.ts +++ b/sdk/purview/purview-datamap-rest/src/models.ts @@ -49,10 +49,8 @@ export interface AtlasEntity { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. - * - * Possible values: "ACTIVE", "DELETED" */ - status?: string; + status?: EntityStatus; /** The update time of the record. */ updateTime?: number; /** The user who updated the record. */ @@ -79,10 +77,8 @@ export interface AtlasClassification { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. - * - * Possible values: "ACTIVE", "DELETED" */ - entityStatus?: string; + entityStatus?: EntityStatus; /** Determines if propagations will be removed on entity deletion. */ removePropagationsOnEntityDelete?: boolean; /** An array of time boundaries indicating validity periods. */ @@ -113,12 +109,8 @@ export interface AtlasTermAssignmentHeader { expression?: string; /** The GUID of the relationship. */ relationGuid?: string; - /** - * The status of terms assignment. - * - * Possible values: "DISCOVERED", "PROPOSED", "IMPORTED", "VALIDATED", "DEPRECATED", "OBSOLETE", "OTHER" - */ - status?: string; + /** The status of terms assignment. */ + status?: AtlasTermAssignmentStatus; /** The steward of the term. */ steward?: string; /** The GUID of the term. */ @@ -160,10 +152,8 @@ export interface AtlasEntityHeader { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. - * - * Possible values: "ACTIVE", "DELETED" */ - status?: string; + status?: EntityStatus; } /** @@ -194,15 +184,16 @@ export interface AtlasEntityHeaders { guidHeaderMap?: Record; } -/** Business metadata to send to the service */ -export interface BusinessMetadataOptions { - /** - * InputStream of file - * - * NOTE: The following type 'File' is part of WebAPI and available since Node 20. If your Node version is lower than Node 20. - * You could leverage our helpers 'createFile' or 'createFileFromStream' to create a File object. They could help you specify filename, type, and others. - */ - file: string | Uint8Array | ReadableStream | NodeJS.ReadableStream | File; +export interface BusinessMetadataOptionsFilePartDescriptor { + name: "file"; + body: + | string + | Uint8Array + | ReadableStream + | NodeJS.ReadableStream + | File; + filename?: string; + contentType?: string; } /** MoveEntitiesOptions */ @@ -211,6 +202,38 @@ export interface MoveEntitiesOptions { entityGuids?: string[]; } +/** The header of the related category. */ +export interface AtlasRelatedCategoryHeader { + /** The GUID of the category. */ + categoryGuid?: string; + /** The description of the category header. */ + description?: string; + /** The display text. */ + displayText?: string; + /** The GUID of the parent category. */ + parentCategoryGuid?: string; + /** The GUID of the relationship. */ + relationGuid?: string; +} + +/** The header of the related term. */ +export interface AtlasRelatedTermHeader { + /** The description of the related term. */ + description?: string; + /** The display text. */ + displayText?: string; + /** The expression of the term. */ + expression?: string; + /** The GUID of the relationship. */ + relationGuid?: string; + /** The status of term relationship. */ + status?: AtlasTermRelationshipStatus; + /** The steward of the term. */ + steward?: string; + /** The GUID of the term. */ + termGuid?: string; +} + /** The glossary object. */ export interface AtlasGlossary { /** The GUID of the object. */ @@ -245,42 +268,6 @@ export interface AtlasGlossary { usage?: string; } -/** The header of the related category. */ -export interface AtlasRelatedCategoryHeader { - /** The GUID of the category. */ - categoryGuid?: string; - /** The description of the category header. */ - description?: string; - /** The display text. */ - displayText?: string; - /** The GUID of the parent category. */ - parentCategoryGuid?: string; - /** The GUID of the relationship. */ - relationGuid?: string; -} - -/** The header of the related term. */ -export interface AtlasRelatedTermHeader { - /** The description of the related term. */ - description?: string; - /** The display text. */ - displayText?: string; - /** The expression of the term. */ - expression?: string; - /** The GUID of the relationship. */ - relationGuid?: string; - /** - * The status of term relationship. - * - * Possible values: "DRAFT", "ACTIVE", "DEPRECATED", "OBSOLETE", "OTHER" - */ - status?: string; - /** The steward of the term. */ - steward?: string; - /** The GUID of the term. */ - termGuid?: string; -} - /** The glossary category. */ export interface AtlasGlossaryCategory { /** The GUID of the object. */ @@ -325,6 +312,40 @@ export interface AtlasGlossaryHeader { relationGuid?: string; } +/** The glossary category. */ +export interface AtlasGlossaryCategory { + /** The GUID of the object. */ + guid?: string; + /** An array of classifications. */ + classifications?: Array; + /** The long version description. */ + longDescription?: string; + /** The name of the glossary object. */ + name?: string; + /** The qualified name of the glossary object. */ + qualifiedName?: string; + /** The short version of description. */ + shortDescription?: string; + /** ETag for concurrency control. */ + lastModifiedTS?: string; + /** The created time of the record. */ + createTime?: number; + /** The user who created the record. */ + createdBy?: string; + /** The update time of the record. */ + updateTime?: number; + /** The user who updated the record. */ + updatedBy?: string; + /** The glossary header with basic information. */ + anchor?: AtlasGlossaryHeader; + /** An array of children categories. */ + childrenCategories?: Array; + /** The header of the related category. */ + parentCategory?: AtlasRelatedCategoryHeader; + /** An array of related term headers. */ + terms?: Array; +} + /** The glossary term. */ export interface AtlasGlossaryTerm { /** The GUID of the object. */ @@ -357,12 +378,8 @@ export interface AtlasGlossaryTerm { anchor?: AtlasGlossaryHeader; /** An array of related term headers as antonyms. */ antonyms?: Array; - /** - * Status of the AtlasGlossaryTerm - * - * Possible values: "Draft", "Approved", "Alert", "Expired" - */ - status?: string; + /** Status of the AtlasGlossaryTerm */ + status?: TermStatus; /** The nick name of the term. */ nickName?: string; /** The hierarchy information of the term. */ @@ -455,10 +472,8 @@ export interface AtlasRelatedObjectId { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. - * - * Possible values: "ACTIVE", "DELETED" */ - entityStatus?: string; + entityStatus?: EntityStatus; /** Relationship type */ relationshipType?: string; /** @@ -468,12 +483,8 @@ export interface AtlasRelatedObjectId { relationshipAttributes?: AtlasStruct; /** The GUID of the relationship. */ relationshipGuid?: string; - /** - * The enum of relationship status. - * - * Possible values: "ACTIVE", "DELETED" - */ - relationshipStatus?: string; + /** The enum of relationship status. */ + relationshipStatus?: StatusAtlasRelationship; } /** @@ -499,12 +510,90 @@ export interface AtlasTermCategorizationHeader { displayText?: string; /** The GUID of the relationship. */ relationGuid?: string; + /** The status of term relationship. */ + status?: AtlasTermRelationshipStatus; +} + +/** The glossary term. */ +export interface AtlasGlossaryTerm { + /** The GUID of the object. */ + guid?: string; + /** An array of classifications. */ + classifications?: Array; + /** The long version description. */ + longDescription?: string; + /** The name of the glossary object. */ + name?: string; + /** The qualified name of the glossary object. */ + qualifiedName?: string; + /** The short version of description. */ + shortDescription?: string; + /** ETag for concurrency control. */ + lastModifiedTS?: string; + /** The created time of the record. */ + createTime?: number; + /** The user who created the record. */ + createdBy?: string; + /** The update time of the record. */ + updateTime?: number; + /** The user who updated the record. */ + updatedBy?: string; + /** The abbreviation of the term. */ + abbreviation?: string; + /** The name of the template. */ + templateName?: unknown[]; + /** The glossary header with basic information. */ + anchor?: AtlasGlossaryHeader; + /** An array of related term headers as antonyms. */ + antonyms?: Array; + /** Status of the AtlasGlossaryTerm */ + status?: TermStatus; + /** The nick name of the term. */ + nickName?: string; + /** The hierarchy information of the term. */ + hierarchyInfo?: Array; + /** An array of resource link for term */ + resources?: Array; + /** The dictionary of contacts for terms. Key could be Expert or Steward. */ + contacts?: Record>; /** - * The status of term relationship. - * - * Possible values: "DRAFT", "ACTIVE", "DEPRECATED", "OBSOLETE", "OTHER" + * The custom attributes of the term, which is map>. + * The + * key of the first layer map is term template name. */ - status?: string; + attributes?: Record>; + /** An array of related object IDs. */ + assignedEntities?: Array; + /** An array of term categorization headers. */ + categories?: Array; + /** An array of related term headers. */ + classifies?: Array; + /** An array of examples. */ + examples?: string[]; + /** An array of related term headers indicating the is-a relationship. */ + isA?: Array; + /** An array of preferred related term headers. */ + preferredTerms?: Array; + /** An array of related term headers that are preferred to. */ + preferredToTerms?: Array; + /** An array of related term headers that are replaced by. */ + replacedBy?: Array; + /** An array of related term headers for replacement. */ + replacementTerms?: Array; + /** An array of related term headers for see also. */ + seeAlso?: Array; + /** An array of related term headers as synonyms. */ + synonyms?: Array; + /** An array of translated related term headers. */ + translatedTerms?: Array; + /** An array of related term headers for translation. */ + translationTerms?: Array; + /** The usage of the term. */ + usage?: string; + /** An array of related term headers as valid values. */ + validValues?: Array; + /** An array of related term headers as valid values for other records. */ + validValuesFor?: Array; } /** The search query of advanced search request. */ @@ -543,18 +632,10 @@ export interface SearchFacetItem { /** The sorting criteria */ export interface SearchFacetSort { - /** - * Order by count - * - * Possible values: "asc", "desc" - */ - count?: string; - /** - * Order by value - * - * Possible values: "asc", "desc" - */ - value?: string; + /** Order by count */ + count?: SearchSortOrder; + /** Order by value */ + value?: SearchSortOrder; } /** Taxonomy setting for search request */ @@ -623,12 +704,8 @@ export interface AtlasRelationship { label?: string; /** Used to record the provenance of an instance of an entity or relationship */ provenanceType?: number; - /** - * The enum of relationship status. - * - * Possible values: "ACTIVE", "DELETED" - */ - status?: string; + /** The enum of relationship status. */ + status?: StatusAtlasRelationship; /** The update time of the record. */ updateTime?: number; /** The user who updated the record. */ @@ -649,12 +726,8 @@ export interface AtlasObjectId { /** class that captures details of a struct-type. */ export interface AtlasBusinessMetadataDef { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategory; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -735,12 +808,8 @@ export interface NumberFormat { parseIntegerOnly?: boolean; /** The number format. */ percentInstance?: NumberFormat; - /** - * The enum of rounding mode. - * - * Possible values: "UP", "DOWN", "CEILING", "FLOOR", "HALF_UP", "HALF_DOWN", "HALF_EVEN", "UNNECESSARY" - */ - roundingMode?: string; + /** The enum of rounding mode. */ + roundingMode?: RoundingMode; } /** The timezone information. */ @@ -761,12 +830,8 @@ export interface TimeZone { /** class that captures details of a struct-attribute. */ export interface AtlasAttributeDef { - /** - * single-valued attribute or multi-valued attribute. - * - * Possible values: "SINGLE", "LIST", "SET" - */ - cardinality?: string; + /** single-valued attribute or multi-valued attribute. */ + cardinality?: CardinalityValue; /** An array of constraints. */ constraints?: Array; /** The default value of the attribute. */ @@ -803,12 +868,8 @@ export interface AtlasConstraintDef { /** class that captures details of a classification-type. */ export interface AtlasClassificationDef { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategory; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -870,12 +931,8 @@ export interface AtlasClassificationDef { /** class that captures details of a entity-type. */ export interface AtlasEntityDef { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategory; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -919,12 +976,8 @@ export interface AtlasEntityDef { * it is the container end of the relationship. */ export interface AtlasRelationshipAttributeDef { - /** - * single-valued attribute or multi-valued attribute. - * - * Possible values: "SINGLE", "LIST", "SET" - */ - cardinality?: string; + /** single-valued attribute or multi-valued attribute. */ + cardinality?: CardinalityValue; /** An array of constraints. */ constraints?: Array; /** The default value of the attribute. */ @@ -957,12 +1010,8 @@ export interface AtlasRelationshipAttributeDef { /** class that captures details of an enum-type. */ export interface AtlasEnumDef { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategory; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1046,12 +1095,8 @@ export interface AtlasEnumElementDef { * the entity instances */ export interface AtlasRelationshipDef { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategory; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1103,10 +1148,8 @@ export interface AtlasRelationshipDef { * The difference being in the lifecycles of the container and its children. * In the COMPOSITION case, the children cannot exist without the container. * For AGGREGATION, the life cycles of the container and children are totally independent. - * - * Possible values: "ASSOCIATION", "AGGREGATION", "COMPOSITION" */ - relationshipCategory?: string; + relationshipCategory?: RelationshipCategory; /** The label of the relationship. */ relationshipLabel?: string; } @@ -1118,12 +1161,8 @@ export interface AtlasRelationshipDef { * it is the container end of the relationship. */ export interface AtlasRelationshipEndDef { - /** - * single-valued attribute or multi-valued attribute. - * - * Possible values: "SINGLE", "LIST", "SET" - */ - cardinality?: string; + /** single-valued attribute or multi-valued attribute. */ + cardinality?: CardinalityValue; /** The description of the relationship end definition. */ description?: string; /** Determines if it is container. */ @@ -1138,12 +1177,8 @@ export interface AtlasRelationshipEndDef { /** class that captures details of a struct-type. */ export interface AtlasStructDef { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategory; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1174,32 +1209,10 @@ export interface AtlasStructDef { attributeDefs?: Array; } -/** The definitions of types. */ -export interface AtlasTypesDef { - /** businessMetadataDefs */ - businessMetadataDefs?: Array; - /** An array of classification definitions. */ - classificationDefs?: Array; - /** An array of entity definitions. */ - entityDefs?: Array; - /** An array of enum definitions. */ - enumDefs?: Array; - /** An array of relationship definitions. */ - relationshipDefs?: Array; - /** An array of struct definitions. */ - structDefs?: Array; - /** An array of term template definitions. */ - termTemplateDefs?: Array; -} - /** Term template definition for glossary term. */ export interface TermTemplateDef { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategory; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1229,3 +1242,83 @@ export interface TermTemplateDef { /** An array of attribute definitions. */ attributeDefs?: Array; } + +/** The definitions of types. */ +export interface AtlasTypesDef { + /** businessMetadataDefs */ + businessMetadataDefs?: Array; + /** An array of classification definitions. */ + classificationDefs?: Array; + /** An array of entity definitions. */ + entityDefs?: Array; + /** An array of enum definitions. */ + enumDefs?: Array; + /** An array of relationship definitions. */ + relationshipDefs?: Array; + /** An array of struct definitions. */ + structDefs?: Array; + /** An array of term template definitions. */ + termTemplateDefs?: Array; +} + +/** Enum for business attribute update behavior */ +export type BusinessAttributeUpdateBehavior = "ignore" | "replace" | "merge"; +/** Status - can be active or deleted */ +export type EntityStatus = "ACTIVE" | "DELETED"; +/** Status for term assignment */ +export type AtlasTermAssignmentStatus = + | "DISCOVERED" + | "PROPOSED" + | "IMPORTED" + | "VALIDATED" + | "DEPRECATED" + | "OBSOLETE" + | "OTHER"; +/** Business metadata to send to the service */ +export type BusinessMetadataOptions = + | FormData + | Array; +/** Status for atlas term relationship */ +export type AtlasTermRelationshipStatus = + | "DRAFT" + | "ACTIVE" + | "DEPRECATED" + | "OBSOLETE" + | "OTHER"; +/** Status for term */ +export type TermStatus = "Draft" | "Approved" | "Alert" | "Expired"; +/** Status for atlas relationship */ +export type StatusAtlasRelationship = "ACTIVE" | "DELETED"; +/** Search sort order */ +export type SearchSortOrder = "asc" | "desc"; +/** Lineage direction */ +export type LineageDirection = "INPUT" | "OUTPUT" | "BOTH"; +/** Type Category */ +export type TypeCategory = + | "PRIMITIVE" + | "OBJECT_ID_TYPE" + | "ENUM" + | "STRUCT" + | "CLASSIFICATION" + | "ENTITY" + | "ARRAY" + | "MAP" + | "RELATIONSHIP" + | "TERM_TEMPLATE"; +/** Rounding Mode */ +export type RoundingMode = + | "UP" + | "DOWN" + | "CEILING" + | "FLOOR" + | "HALF_UP" + | "HALF_DOWN" + | "HALF_EVEN" + | "UNNECESSARY"; +/** Cardinality */ +export type CardinalityValue = "SINGLE" | "LIST" | "SET"; +/** Relationship Category */ +export type RelationshipCategory = + | "ASSOCIATION" + | "AGGREGATION" + | "COMPOSITION"; diff --git a/sdk/purview/purview-datamap-rest/src/outputModels.ts b/sdk/purview/purview-datamap-rest/src/outputModels.ts index e8d6ec311647..dc27e84477d8 100644 --- a/sdk/purview/purview-datamap-rest/src/outputModels.ts +++ b/sdk/purview/purview-datamap-rest/src/outputModels.ts @@ -1,17 +1,6 @@ // 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 { - /** The referred entities. */ - referredEntities?: Record; - /** 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 { /** The attributes of the struct. */ @@ -51,10 +40,8 @@ export interface AtlasEntityOutput { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. - * - * Possible values: "ACTIVE", "DELETED" */ - status?: string; + status?: EntityStatusOutput; /** The update time of the record. */ updateTime?: number; /** The user who updated the record. */ @@ -81,10 +68,8 @@ export interface AtlasClassificationOutput { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. - * - * Possible values: "ACTIVE", "DELETED" */ - entityStatus?: string; + entityStatus?: EntityStatusOutput; /** Determines if propagations will be removed on entity deletion. */ removePropagationsOnEntityDelete?: boolean; /** An array of time boundaries indicating validity periods. */ @@ -115,12 +100,8 @@ export interface AtlasTermAssignmentHeaderOutput { expression?: string; /** The GUID of the relationship. */ relationGuid?: string; - /** - * The status of terms assignment. - * - * Possible values: "DISCOVERED", "PROPOSED", "IMPORTED", "VALIDATED", "DEPRECATED", "OBSOLETE", "OTHER" - */ - status?: string; + /** The status of terms assignment. */ + status?: AtlasTermAssignmentStatusOutput; /** The steward of the term. */ steward?: string; /** The GUID of the term. */ @@ -172,10 +153,8 @@ export interface AtlasEntityHeaderOutput { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. - * - * Possible values: "ACTIVE", "DELETED" */ - status?: string; + status?: EntityStatusOutput; } /** An error response from the service */ @@ -199,6 +178,17 @@ export interface AtlasEntitiesWithExtInfoOutput { entities?: Array; } +/** + * An instance of an entity along with extended info - like hive_table, + * hive_database. + */ +export interface AtlasEntityWithExtInfoOutput { + /** The referred entities. */ + referredEntities?: Record; + /** An instance of an entity - like hive_table, hive_database. */ + entity?: AtlasEntityOutput; +} + /** REST serialization friendly list. */ export interface AtlasClassificationsOutput { /** An array of objects. */ @@ -207,29 +197,14 @@ export interface AtlasClassificationsOutput { pageSize?: number; /** The sorted by field. */ sortBy?: string; - /** - * to specify whether the result should be sorted? If yes, whether asc or desc. - * - * Possible values: "NONE", "ASC", "DESC" - */ - sortType?: string; + /** to specify whether the result should be sorted? If yes, whether asc or desc. */ + sortType?: SortTypeOutput; /** The start index of the page. */ startIndex?: number; /** The total count of items. */ totalCount?: number; } -/** Business metadata to send to the service */ -export interface BusinessMetadataOptionsOutput { - /** - * InputStream of file - * - * NOTE: The following type 'File' is part of WebAPI and available since Node 20. If your Node version is lower than Node 20. - * You could leverage our helpers 'createFile' or 'createFileFromStream' to create a File object. They could help you specify filename, type, and others. - */ - file: Uint8Array; -} - /** Bulk import result */ export interface BulkImportResultOutput { /** failed importInfoList */ @@ -242,12 +217,8 @@ export interface BulkImportResultOutput { export interface ImportInfoOutput { /** childObjectName */ childObjectName?: string; - /** - * importStatus - * - * Possible values: "SUCCESS", "FAILED" - */ - importStatus?: string; + /** importStatus */ + importStatus?: ImportStatusOutput; /** parentObjectName */ parentObjectName?: string; /** remarks */ @@ -312,12 +283,8 @@ export interface AtlasRelatedTermHeaderOutput { expression?: string; /** The GUID of the relationship. */ relationGuid?: string; - /** - * The status of term relationship. - * - * Possible values: "DRAFT", "ACTIVE", "DEPRECATED", "OBSOLETE", "OTHER" - */ - status?: string; + /** The status of term relationship. */ + status?: AtlasTermRelationshipStatusOutput; /** The steward of the term. */ steward?: string; /** The GUID of the term. */ @@ -368,92 +335,6 @@ export interface AtlasGlossaryHeaderOutput { relationGuid?: string; } -/** The glossary term. */ -export interface AtlasGlossaryTermOutput { - /** The GUID of the object. */ - guid?: string; - /** An array of classifications. */ - classifications?: Array; - /** The long version description. */ - longDescription?: string; - /** The name of the glossary object. */ - name?: string; - /** The qualified name of the glossary object. */ - qualifiedName?: string; - /** The short version of description. */ - shortDescription?: string; - /** ETag for concurrency control. */ - lastModifiedTS?: string; - /** The created time of the record. */ - createTime?: number; - /** The user who created the record. */ - createdBy?: string; - /** The update time of the record. */ - updateTime?: number; - /** The user who updated the record. */ - updatedBy?: string; - /** The abbreviation of the term. */ - abbreviation?: string; - /** The name of the template. */ - templateName?: any[]; - /** The glossary header with basic information. */ - anchor?: AtlasGlossaryHeaderOutput; - /** An array of related term headers as antonyms. */ - antonyms?: Array; - /** - * Status of the AtlasGlossaryTerm - * - * Possible values: "Draft", "Approved", "Alert", "Expired" - */ - status?: string; - /** The nick name of the term. */ - nickName?: string; - /** The hierarchy information of the term. */ - hierarchyInfo?: Array; - /** An array of resource link for term */ - resources?: Array; - /** The dictionary of contacts for terms. Key could be Expert or Steward. */ - contacts?: Record>; - /** - * The custom attributes of the term, which is map>. - * The - * key of the first layer map is term template name. - */ - attributes?: Record>; - /** An array of related object IDs. */ - assignedEntities?: Array; - /** An array of term categorization headers. */ - categories?: Array; - /** An array of related term headers. */ - classifies?: Array; - /** An array of examples. */ - examples?: string[]; - /** An array of related term headers indicating the is-a relationship. */ - isA?: Array; - /** An array of preferred related term headers. */ - preferredTerms?: Array; - /** An array of related term headers that are preferred to. */ - preferredToTerms?: Array; - /** An array of related term headers that are replaced by. */ - replacedBy?: Array; - /** An array of related term headers for replacement. */ - replacementTerms?: Array; - /** An array of related term headers for see also. */ - seeAlso?: Array; - /** An array of related term headers as synonyms. */ - synonyms?: Array; - /** An array of translated related term headers. */ - translatedTerms?: Array; - /** An array of related term headers for translation. */ - translationTerms?: Array; - /** The usage of the term. */ - usage?: string; - /** An array of related term headers as valid values. */ - validValues?: Array; - /** An array of related term headers as valid values for other records. */ - validValuesFor?: Array; -} - /** PurviewObjectId */ export interface PurviewObjectIdOutput { /** The GUID of the object. */ @@ -498,10 +379,8 @@ export interface AtlasRelatedObjectIdOutput { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. - * - * Possible values: "ACTIVE", "DELETED" */ - entityStatus?: string; + entityStatus?: EntityStatusOutput; /** Relationship type */ relationshipType?: string; /** @@ -511,12 +390,8 @@ export interface AtlasRelatedObjectIdOutput { relationshipAttributes?: AtlasStructOutput; /** The GUID of the relationship. */ relationshipGuid?: string; - /** - * The enum of relationship status. - * - * Possible values: "ACTIVE", "DELETED" - */ - relationshipStatus?: string; + /** The enum of relationship status. */ + relationshipStatus?: StatusAtlasRelationshipOutput; } /** @@ -542,12 +417,90 @@ export interface AtlasTermCategorizationHeaderOutput { displayText?: string; /** The GUID of the relationship. */ relationGuid?: string; + /** The status of term relationship. */ + status?: AtlasTermRelationshipStatusOutput; +} + +/** The glossary term. */ +export interface AtlasGlossaryTermOutput { + /** The GUID of the object. */ + guid?: string; + /** An array of classifications. */ + classifications?: Array; + /** The long version description. */ + longDescription?: string; + /** The name of the glossary object. */ + name?: string; + /** The qualified name of the glossary object. */ + qualifiedName?: string; + /** The short version of description. */ + shortDescription?: string; + /** ETag for concurrency control. */ + lastModifiedTS?: string; + /** The created time of the record. */ + createTime?: number; + /** The user who created the record. */ + createdBy?: string; + /** The update time of the record. */ + updateTime?: number; + /** The user who updated the record. */ + updatedBy?: string; + /** The abbreviation of the term. */ + abbreviation?: string; + /** The name of the template. */ + templateName?: any[]; + /** The glossary header with basic information. */ + anchor?: AtlasGlossaryHeaderOutput; + /** An array of related term headers as antonyms. */ + antonyms?: Array; + /** Status of the AtlasGlossaryTerm */ + status?: TermStatusOutput; + /** The nick name of the term. */ + nickName?: string; + /** The hierarchy information of the term. */ + hierarchyInfo?: Array; + /** An array of resource link for term */ + resources?: Array; + /** The dictionary of contacts for terms. Key could be Expert or Steward. */ + contacts?: Record>; /** - * The status of term relationship. - * - * Possible values: "DRAFT", "ACTIVE", "DEPRECATED", "OBSOLETE", "OTHER" + * The custom attributes of the term, which is map>. + * The + * key of the first layer map is term template name. */ - status?: string; + attributes?: Record>; + /** An array of related object IDs. */ + assignedEntities?: Array; + /** An array of term categorization headers. */ + categories?: Array; + /** An array of related term headers. */ + classifies?: Array; + /** An array of examples. */ + examples?: string[]; + /** An array of related term headers indicating the is-a relationship. */ + isA?: Array; + /** An array of preferred related term headers. */ + preferredTerms?: Array; + /** An array of related term headers that are preferred to. */ + preferredToTerms?: Array; + /** An array of related term headers that are replaced by. */ + replacedBy?: Array; + /** An array of related term headers for replacement. */ + replacementTerms?: Array; + /** An array of related term headers for see also. */ + seeAlso?: Array; + /** An array of related term headers as synonyms. */ + synonyms?: Array; + /** An array of translated related term headers. */ + translatedTerms?: Array; + /** An array of related term headers for translation. */ + translationTerms?: Array; + /** The usage of the term. */ + usage?: string; + /** An array of related term headers as valid values. */ + validValues?: Array; + /** An array of related term headers as valid values for other records. */ + validValuesFor?: Array; } /** The extended information of glossary. */ @@ -594,9 +547,9 @@ export interface QueryResultOutput { * The total number of search results (not the number of documents in a single * page). */ - searchCount?: number; + "@search.count"?: number; /** 'True' if the '@search.count' is an approximate value and vise versa. */ - searchCountApproximate?: boolean; + "@search.count.approximate"?: boolean; /** The token used to get next batch of data. Absent if there's no more data. */ continuationToken?: string; /** @@ -604,7 +557,7 @@ export interface QueryResultOutput { * contactId, and label. When the facet is specified in the request, the value of * the facet is returned as an element of @search.facets. */ - searchFacets?: SearchFacetResultValueOutput; + "@search.facets"?: SearchFacetResultValueOutput; /** Search result value */ value?: Array; } @@ -651,14 +604,14 @@ export interface SearchResultValueOutput { * The search score calculated by the search engine. The results are ordered by * search score by default. */ - searchScore?: number; + "@search.score"?: number; /** * 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. */ - searchHighlights?: SearchHighlightsOutput; + "@search.highlights"?: SearchHighlightsOutput; /** * The object type of the record. Object type is the top-level property to * distinguish whether a record is an asset or a term. @@ -761,12 +714,12 @@ export interface SuggestResultValueOutput { * The search score calculated by the search engine. The results are ordered by * search score by default. */ - searchScore?: number; + "@search.score"?: number; /** * The target text that contains the keyword as prefix. The keyword is wrapped * with emphasis mark. */ - searchText?: string; + "@search.text"?: string; /** * The object type of the record. Object type is the top-level property to * distinguish whether a record is an asset or a term. @@ -843,12 +796,8 @@ export interface AtlasLineageInfoOutput { lineageWidth?: number; /** The number of children node. */ childrenCount?: number; - /** - * The enum of lineage direction. - * - * Possible values: "INPUT", "OUTPUT", "BOTH" - */ - lineageDirection?: string; + /** The enum of lineage direction. */ + lineageDirection?: LineageDirectionOutput; /** An array of parentRelations relations. */ parentRelations?: Array; /** An array of lineage relations. */ @@ -875,6 +824,16 @@ export interface LineageRelationOutput { toEntityId?: string; } +/** Reference to an object-instance of a type - like entity. */ +export interface AtlasObjectIdOutput { + /** The GUID of the object. */ + guid?: string; + /** The name of the type. */ + typeName?: string; + /** The unique attributes of the object. */ + uniqueAttributes?: Record; +} + /** Atlas relationship instance. */ export interface AtlasRelationshipOutput { /** The attributes of the struct. */ @@ -899,12 +858,8 @@ export interface AtlasRelationshipOutput { label?: string; /** Used to record the provenance of an instance of an entity or relationship */ provenanceType?: number; - /** - * The enum of relationship status. - * - * Possible values: "ACTIVE", "DELETED" - */ - status?: string; + /** The enum of relationship status. */ + status?: StatusAtlasRelationshipOutput; /** The update time of the record. */ updateTime?: number; /** The user who updated the record. */ @@ -913,16 +868,6 @@ export interface AtlasRelationshipOutput { version?: number; } -/** Reference to an object-instance of a type - like entity. */ -export interface AtlasObjectIdOutput { - /** The GUID of the object. */ - guid?: string; - /** The name of the type. */ - typeName?: string; - /** The unique attributes of the object. */ - uniqueAttributes?: Record; -} - /** The relationship with extended information. */ export interface AtlasRelationshipWithExtInfoOutput { /** The referred entity header. */ @@ -933,12 +878,8 @@ export interface AtlasRelationshipWithExtInfoOutput { /** class that captures details of a struct-type. */ export interface AtlasBusinessMetadataDefOutput { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1019,12 +960,8 @@ export interface NumberFormatOutput { parseIntegerOnly?: boolean; /** The number format. */ percentInstance?: NumberFormatOutput; - /** - * The enum of rounding mode. - * - * Possible values: "UP", "DOWN", "CEILING", "FLOOR", "HALF_UP", "HALF_DOWN", "HALF_EVEN", "UNNECESSARY" - */ - roundingMode?: string; + /** The enum of rounding mode. */ + roundingMode?: RoundingModeOutput; } /** The timezone information. */ @@ -1045,12 +982,8 @@ export interface TimeZoneOutput { /** class that captures details of a struct-attribute. */ export interface AtlasAttributeDefOutput { - /** - * single-valued attribute or multi-valued attribute. - * - * Possible values: "SINGLE", "LIST", "SET" - */ - cardinality?: string; + /** single-valued attribute or multi-valued attribute. */ + cardinality?: CardinalityValueOutput; /** An array of constraints. */ constraints?: Array; /** The default value of the attribute. */ @@ -1087,12 +1020,8 @@ export interface AtlasConstraintDefOutput { /** class that captures details of a classification-type. */ export interface AtlasClassificationDefOutput { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1154,12 +1083,8 @@ export interface AtlasClassificationDefOutput { /** class that captures details of a entity-type. */ export interface AtlasEntityDefOutput { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1203,12 +1128,8 @@ export interface AtlasEntityDefOutput { * it is the container end of the relationship. */ export interface AtlasRelationshipAttributeDefOutput { - /** - * single-valued attribute or multi-valued attribute. - * - * Possible values: "SINGLE", "LIST", "SET" - */ - cardinality?: string; + /** single-valued attribute or multi-valued attribute. */ + cardinality?: CardinalityValueOutput; /** An array of constraints. */ constraints?: Array; /** The default value of the attribute. */ @@ -1241,12 +1162,8 @@ export interface AtlasRelationshipAttributeDefOutput { /** class that captures details of an enum-type. */ export interface AtlasEnumDefOutput { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1330,12 +1247,8 @@ export interface AtlasEnumElementDefOutput { * the entity instances */ export interface AtlasRelationshipDefOutput { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1387,10 +1300,8 @@ export interface AtlasRelationshipDefOutput { * The difference being in the lifecycles of the container and its children. * In the COMPOSITION case, the children cannot exist without the container. * For AGGREGATION, the life cycles of the container and children are totally independent. - * - * Possible values: "ASSOCIATION", "AGGREGATION", "COMPOSITION" */ - relationshipCategory?: string; + relationshipCategory?: RelationshipCategoryOutput; /** The label of the relationship. */ relationshipLabel?: string; } @@ -1402,12 +1313,8 @@ export interface AtlasRelationshipDefOutput { * it is the container end of the relationship. */ export interface AtlasRelationshipEndDefOutput { - /** - * single-valued attribute or multi-valued attribute. - * - * Possible values: "SINGLE", "LIST", "SET" - */ - cardinality?: string; + /** single-valued attribute or multi-valued attribute. */ + cardinality?: CardinalityValueOutput; /** The description of the relationship end definition. */ description?: string; /** Determines if it is container. */ @@ -1422,12 +1329,8 @@ export interface AtlasRelationshipEndDefOutput { /** class that captures details of a struct-type. */ export interface AtlasStructDefOutput { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1460,12 +1363,8 @@ export interface AtlasStructDefOutput { /** The definitions of type. */ export interface AtlasTypeDefOutput { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1552,10 +1451,8 @@ export interface AtlasTypeDefOutput { * The difference being in the lifecycles of the container and its children. * In the COMPOSITION case, the children cannot exist without the container. * For AGGREGATION, the life cycles of the container and children are totally independent. - * - * Possible values: "ASSOCIATION", "AGGREGATION", "COMPOSITION" */ - relationshipCategory?: string; + relationshipCategory?: RelationshipCategoryOutput; /** The label of the relationship. */ relationshipLabel?: string; /** An array of attribute definitions. */ @@ -1582,12 +1479,8 @@ export interface AtlasTypesDefOutput { /** Term template definition for glossary term. */ export interface TermTemplateDefOutput { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; /** The user who created the record. */ @@ -1620,14 +1513,68 @@ export interface TermTemplateDefOutput { /** The basic information of the type definition. */ export interface AtlasTypeDefHeaderOutput { - /** - * The enum of type category. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - category?: string; + /** The enum of type category. */ + category?: TypeCategoryOutput; /** The GUID of the type definition. */ guid?: string; /** The name of the type definition. */ name?: string; } + +/** Status - can be active or deleted */ +export type EntityStatusOutput = "ACTIVE" | "DELETED"; +/** Status for term assignment */ +export type AtlasTermAssignmentStatusOutput = + | "DISCOVERED" + | "PROPOSED" + | "IMPORTED" + | "VALIDATED" + | "DEPRECATED" + | "OBSOLETE" + | "OTHER"; +/** Type for sorting */ +export type SortTypeOutput = "NONE" | "ASC" | "DESC"; +/** Status for import */ +export type ImportStatusOutput = "SUCCESS" | "FAILED"; +/** Status for atlas term relationship */ +export type AtlasTermRelationshipStatusOutput = + | "DRAFT" + | "ACTIVE" + | "DEPRECATED" + | "OBSOLETE" + | "OTHER"; +/** Status for term */ +export type TermStatusOutput = "Draft" | "Approved" | "Alert" | "Expired"; +/** Status for atlas relationship */ +export type StatusAtlasRelationshipOutput = "ACTIVE" | "DELETED"; +/** Lineage direction */ +export type LineageDirectionOutput = "INPUT" | "OUTPUT" | "BOTH"; +/** Type Category */ +export type TypeCategoryOutput = + | "PRIMITIVE" + | "OBJECT_ID_TYPE" + | "ENUM" + | "STRUCT" + | "CLASSIFICATION" + | "ENTITY" + | "ARRAY" + | "MAP" + | "RELATIONSHIP" + | "TERM_TEMPLATE"; +/** Rounding Mode */ +export type RoundingModeOutput = + | "UP" + | "DOWN" + | "CEILING" + | "FLOOR" + | "HALF_UP" + | "HALF_DOWN" + | "HALF_EVEN" + | "UNNECESSARY"; +/** Cardinality */ +export type CardinalityValueOutput = "SINGLE" | "LIST" | "SET"; +/** Relationship Category */ +export type RelationshipCategoryOutput = + | "ASSOCIATION" + | "AGGREGATION" + | "COMPOSITION"; diff --git a/sdk/purview/purview-datamap-rest/src/parameters.ts b/sdk/purview/purview-datamap-rest/src/parameters.ts index be8c10bb3b03..84073df56856 100644 --- a/sdk/purview/purview-datamap-rest/src/parameters.ts +++ b/sdk/purview/purview-datamap-rest/src/parameters.ts @@ -3,6 +3,7 @@ import { RequestParameters } from "@azure-rest/core-client"; import { + BusinessAttributeUpdateBehavior, AtlasEntityWithExtInfo, AtlasEntitiesWithExtInfo, ClassificationAssociateOptions, @@ -17,22 +18,24 @@ import { QueryOptions, SuggestOptions, AutoCompleteOptions, + LineageDirection, AtlasRelationship, + TypeCategory, AtlasTypesDef, } from "./models"; export interface EntityCreateOrUpdateBodyParam { - body?: AtlasEntityWithExtInfo; + body: AtlasEntityWithExtInfo; } export interface EntityCreateOrUpdateQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** * Used to define the update behavior for business attributes when updating * entities. - * - * Possible values: "ignore", "replace", "merge" */ - businessAttributeUpdateBehavior?: string; + businessAttributeUpdateBehavior?: BusinessAttributeUpdateBehavior; /** * The collection where entities will be moved to. Only specify a value if you * need to move an entity to another collection. @@ -49,6 +52,8 @@ export type EntityCreateOrUpdateParameters = EntityCreateOrUpdateQueryParam & RequestParameters; export interface EntityListByGuidsQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** 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. */ @@ -61,13 +66,16 @@ export interface EntityListByGuidsQueryParam { queryParameters: EntityListByGuidsQueryParamProperties; } -export type EntityListByGuidsParameters = EntityListByGuidsQueryParam & RequestParameters; +export type EntityListByGuidsParameters = EntityListByGuidsQueryParam & + RequestParameters; export interface EntityBulkCreateOrUpdateBodyParam { - body?: AtlasEntitiesWithExtInfo; + body: AtlasEntitiesWithExtInfo; } export interface EntityBulkCreateOrUpdateQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** * The collection where entities will be moved to. Only specify a value if you * need to move an entity to another collection. @@ -76,19 +84,18 @@ export interface EntityBulkCreateOrUpdateQueryParamProperties { /** * Used to define the update behavior for business attributes when updating * entities. - * - * Possible values: "ignore", "replace", "merge" */ - businessAttributeUpdateBehavior?: string; + businessAttributeUpdateBehavior?: BusinessAttributeUpdateBehavior; } export interface EntityBulkCreateOrUpdateQueryParam { queryParameters?: EntityBulkCreateOrUpdateQueryParamProperties; } -export type EntityBulkCreateOrUpdateParameters = EntityBulkCreateOrUpdateQueryParam & - EntityBulkCreateOrUpdateBodyParam & - RequestParameters; +export type EntityBulkCreateOrUpdateParameters = + EntityBulkCreateOrUpdateQueryParam & + EntityBulkCreateOrUpdateBodyParam & + RequestParameters; export interface EntityBulkDeleteQueryParamProperties { /** 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 */ @@ -99,14 +106,15 @@ export interface EntityBulkDeleteQueryParam { queryParameters: EntityBulkDeleteQueryParamProperties; } -export type EntityBulkDeleteParameters = EntityBulkDeleteQueryParam & RequestParameters; +export type EntityBulkDeleteParameters = EntityBulkDeleteQueryParam & + RequestParameters; export interface EntityAddClassificationBodyParam { - body?: ClassificationAssociateOptions; + body: ClassificationAssociateOptions; } -export type EntityAddClassificationParameters = EntityAddClassificationBodyParam & - RequestParameters; +export type EntityAddClassificationParameters = + EntityAddClassificationBodyParam & RequestParameters; export interface EntityGetQueryParamProperties { /** Whether to return minimal information for referred entities. */ @@ -149,16 +157,16 @@ export interface EntityAddClassificationsBodyParam { body: Array; } -export type EntityAddClassificationsParameters = EntityAddClassificationsBodyParam & - RequestParameters; +export type EntityAddClassificationsParameters = + EntityAddClassificationsBodyParam & RequestParameters; export interface EntityUpdateClassificationsBodyParam { /** An array of classifications to be updated. */ body: Array; } -export type EntityUpdateClassificationsParameters = EntityUpdateClassificationsBodyParam & - RequestParameters; +export type EntityUpdateClassificationsParameters = + EntityUpdateClassificationsBodyParam & RequestParameters; export interface EntityGetByUniqueAttributesQueryParamProperties { /** Whether to return minimal information for referred entities. */ @@ -176,11 +184,11 @@ export interface EntityGetByUniqueAttributesQueryParam { queryParameters?: EntityGetByUniqueAttributesQueryParamProperties; } -export type EntityGetByUniqueAttributesParameters = EntityGetByUniqueAttributesQueryParam & - RequestParameters; +export type EntityGetByUniqueAttributesParameters = + EntityGetByUniqueAttributesQueryParam & RequestParameters; export interface EntityPartialUpdateByUniqueAttributesBodyParam { - body?: AtlasEntityWithExtInfo; + body: AtlasEntityWithExtInfo; } export interface EntityPartialUpdateByUniqueAttributesQueryParamProperties { @@ -212,8 +220,8 @@ export interface EntityDeleteByUniqueAttributeQueryParam { queryParameters?: EntityDeleteByUniqueAttributeQueryParamProperties; } -export type EntityDeleteByUniqueAttributeParameters = EntityDeleteByUniqueAttributeQueryParam & - RequestParameters; +export type EntityDeleteByUniqueAttributeParameters = + EntityDeleteByUniqueAttributeQueryParam & RequestParameters; export interface EntityRemoveClassificationByUniqueAttributeQueryParamProperties { /** @@ -275,11 +283,11 @@ export type EntityUpdateClassificationsByUniqueAttributeParameters = RequestParameters; export interface EntityBulkSetClassificationsBodyParam { - body?: AtlasEntityHeaders; + body: AtlasEntityHeaders; } -export type EntityBulkSetClassificationsParameters = EntityBulkSetClassificationsBodyParam & - RequestParameters; +export type EntityBulkSetClassificationsParameters = + EntityBulkSetClassificationsBodyParam & RequestParameters; export interface EntityListByUniqueAttributesQueryParamProperties { /** Whether to return minimal information for referred entities. */ @@ -298,8 +306,8 @@ export interface EntityListByUniqueAttributesQueryParam { queryParameters?: EntityListByUniqueAttributesQueryParamProperties; } -export type EntityListByUniqueAttributesParameters = EntityListByUniqueAttributesQueryParam & - RequestParameters; +export type EntityListByUniqueAttributesParameters = + EntityListByUniqueAttributesQueryParam & RequestParameters; export type EntityGetHeaderParameters = RequestParameters; export interface EntityRemoveBusinessMetadataBodyParam { @@ -307,8 +315,8 @@ export interface EntityRemoveBusinessMetadataBodyParam { body: Record>; } -export type EntityRemoveBusinessMetadataParameters = EntityRemoveBusinessMetadataBodyParam & - RequestParameters; +export type EntityRemoveBusinessMetadataParameters = + EntityRemoveBusinessMetadataBodyParam & RequestParameters; export interface EntityAddOrUpdateBusinessMetadataBodyParam { /** BusinessMetadata payload */ @@ -347,10 +355,11 @@ export interface EntityAddOrUpdateBusinessMetadataAttributesBodyParam { export type EntityAddOrUpdateBusinessMetadataAttributesParameters = EntityAddOrUpdateBusinessMetadataAttributesBodyParam & RequestParameters; -export type EntityGetSampleBusinessMetadataTemplateParameters = RequestParameters; +export type EntityGetSampleBusinessMetadataTemplateParameters = + RequestParameters; export interface EntityImportBusinessMetadataBodyParam { - body?: BusinessMetadataOptions; + body: BusinessMetadataOptions; } export interface EntityImportBusinessMetadataMediaTypesParam { @@ -358,30 +367,34 @@ export interface EntityImportBusinessMetadataMediaTypesParam { contentType: "multipart/form-data"; } -export type EntityImportBusinessMetadataParameters = EntityImportBusinessMetadataMediaTypesParam & - EntityImportBusinessMetadataBodyParam & - RequestParameters; +export type EntityImportBusinessMetadataParameters = + EntityImportBusinessMetadataMediaTypesParam & + EntityImportBusinessMetadataBodyParam & + RequestParameters; export interface EntityRemoveLabelsBodyParam { /** set of labels to be deleted */ body?: string[]; } -export type EntityRemoveLabelsParameters = EntityRemoveLabelsBodyParam & RequestParameters; +export type EntityRemoveLabelsParameters = EntityRemoveLabelsBodyParam & + RequestParameters; export interface EntitySetLabelsBodyParam { /** set of labels to be set to the entity */ body?: string[]; } -export type EntitySetLabelsParameters = EntitySetLabelsBodyParam & RequestParameters; +export type EntitySetLabelsParameters = EntitySetLabelsBodyParam & + RequestParameters; export interface EntityAddLabelBodyParam { /** set of labels to be added */ body?: string[]; } -export type EntityAddLabelParameters = EntityAddLabelBodyParam & RequestParameters; +export type EntityAddLabelParameters = EntityAddLabelBodyParam & + RequestParameters; export interface EntityRemoveLabelsByUniqueAttributeBodyParam { /** set of labels to be deleted */ @@ -450,10 +463,12 @@ export type EntityAddLabelsByUniqueAttributeParameters = RequestParameters; export interface EntityMoveEntitiesToCollectionBodyParam { - body?: MoveEntitiesOptions; + body: MoveEntitiesOptions; } export interface EntityMoveEntitiesToCollectionQueryParamProperties { + /** The API version to use for this operation. */ + "api-version": string; /** The collection where entities will be moved to. */ collectionId: string; } @@ -462,11 +477,14 @@ export interface EntityMoveEntitiesToCollectionQueryParam { queryParameters: EntityMoveEntitiesToCollectionQueryParamProperties; } -export type EntityMoveEntitiesToCollectionParameters = EntityMoveEntitiesToCollectionQueryParam & - EntityMoveEntitiesToCollectionBodyParam & - RequestParameters; +export type EntityMoveEntitiesToCollectionParameters = + EntityMoveEntitiesToCollectionQueryParam & + EntityMoveEntitiesToCollectionBodyParam & + RequestParameters; export interface GlossaryListQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** The page size - by default there is no paging. */ limit?: number; /** The offset for pagination purpose. */ @@ -484,31 +502,34 @@ export interface GlossaryListQueryParam { export type GlossaryListParameters = GlossaryListQueryParam & RequestParameters; export interface GlossaryCreateBodyParam { - body?: AtlasGlossary; + body: AtlasGlossary; } -export type GlossaryCreateParameters = GlossaryCreateBodyParam & RequestParameters; +export type GlossaryCreateParameters = GlossaryCreateBodyParam & + RequestParameters; export interface GlossaryCreateCategoriesBodyParam { /** An array of glossary category definitions to be created. */ body: Array; } -export type GlossaryCreateCategoriesParameters = GlossaryCreateCategoriesBodyParam & - RequestParameters; +export type GlossaryCreateCategoriesParameters = + GlossaryCreateCategoriesBodyParam & RequestParameters; export interface GlossaryCreateCategoryBodyParam { - body?: AtlasGlossaryCategory; + body: AtlasGlossaryCategory; } -export type GlossaryCreateCategoryParameters = GlossaryCreateCategoryBodyParam & RequestParameters; +export type GlossaryCreateCategoryParameters = GlossaryCreateCategoryBodyParam & + RequestParameters; export type GlossaryGetCategoryParameters = RequestParameters; export interface GlossaryUpdateCategoryBodyParam { - body?: AtlasGlossaryCategory; + body: AtlasGlossaryCategory; } -export type GlossaryUpdateCategoryParameters = GlossaryUpdateCategoryBodyParam & RequestParameters; +export type GlossaryUpdateCategoryParameters = GlossaryUpdateCategoryBodyParam & + RequestParameters; export type GlossaryDeleteCategoryParameters = RequestParameters; export interface GlossaryPartialUpdateCategoryBodyParam { @@ -519,8 +540,8 @@ export interface GlossaryPartialUpdateCategoryBodyParam { body: Record; } -export type GlossaryPartialUpdateCategoryParameters = GlossaryPartialUpdateCategoryBodyParam & - RequestParameters; +export type GlossaryPartialUpdateCategoryParameters = + GlossaryPartialUpdateCategoryBodyParam & RequestParameters; export interface GlossaryListRelatedCategoriesQueryParamProperties { /** The page size - by default there is no paging. */ @@ -535,8 +556,8 @@ export interface GlossaryListRelatedCategoriesQueryParam { queryParameters?: GlossaryListRelatedCategoriesQueryParamProperties; } -export type GlossaryListRelatedCategoriesParameters = GlossaryListRelatedCategoriesQueryParam & - RequestParameters; +export type GlossaryListRelatedCategoriesParameters = + GlossaryListRelatedCategoriesQueryParam & RequestParameters; export interface GlossaryListCategoryTermsQueryParamProperties { /** The page size - by default there is no paging. */ @@ -551,11 +572,11 @@ export interface GlossaryListCategoryTermsQueryParam { queryParameters?: GlossaryListCategoryTermsQueryParamProperties; } -export type GlossaryListCategoryTermsParameters = GlossaryListCategoryTermsQueryParam & - RequestParameters; +export type GlossaryListCategoryTermsParameters = + GlossaryListCategoryTermsQueryParam & RequestParameters; export interface GlossaryCreateTermBodyParam { - body?: AtlasGlossaryTerm; + body: AtlasGlossaryTerm; } export interface GlossaryCreateTermQueryParamProperties { @@ -570,13 +591,26 @@ export interface GlossaryCreateTermQueryParam { export type GlossaryCreateTermParameters = GlossaryCreateTermQueryParam & GlossaryCreateTermBodyParam & RequestParameters; -export type GlossaryGetTermParameters = RequestParameters; + +export interface GlossaryGetTermQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; +} + +export interface GlossaryGetTermQueryParam { + queryParameters?: GlossaryGetTermQueryParamProperties; +} + +export type GlossaryGetTermParameters = GlossaryGetTermQueryParam & + RequestParameters; export interface GlossaryUpdateTermBodyParam { - body?: AtlasGlossaryTerm; + body: AtlasGlossaryTerm; } export interface GlossaryUpdateTermQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** Whether include term hierarchy */ includeTermHierarchy?: boolean; } @@ -599,6 +633,8 @@ export interface GlossaryPartialUpdateTermBodyParam { } export interface GlossaryPartialUpdateTermQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** Whether include term hierarchy */ includeTermHierarchy?: boolean; } @@ -607,9 +643,10 @@ export interface GlossaryPartialUpdateTermQueryParam { queryParameters?: GlossaryPartialUpdateTermQueryParamProperties; } -export type GlossaryPartialUpdateTermParameters = GlossaryPartialUpdateTermQueryParam & - GlossaryPartialUpdateTermBodyParam & - RequestParameters; +export type GlossaryPartialUpdateTermParameters = + GlossaryPartialUpdateTermQueryParam & + GlossaryPartialUpdateTermBodyParam & + RequestParameters; export interface GlossaryCreateTermsBodyParam { /** An array of glossary term definitions to be created in bulk. */ @@ -617,6 +654,8 @@ export interface GlossaryCreateTermsBodyParam { } export interface GlossaryCreateTermsQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** Whether include term hierarchy */ includeTermHierarchy?: boolean; } @@ -650,8 +689,8 @@ export interface GlossaryAssignTermToEntitiesBodyParam { body: Array; } -export type GlossaryAssignTermToEntitiesParameters = GlossaryAssignTermToEntitiesBodyParam & - RequestParameters; +export type GlossaryAssignTermToEntitiesParameters = + GlossaryAssignTermToEntitiesBodyParam & RequestParameters; export interface GlossaryDeleteTermAssignmentFromEntitiesBodyParam { /** An array of related object IDs from which the term has to be dissociated. */ @@ -662,6 +701,8 @@ export type GlossaryDeleteTermAssignmentFromEntitiesParameters = GlossaryDeleteTermAssignmentFromEntitiesBodyParam & RequestParameters; export interface GlossaryListRelatedTermsQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** The page size - by default there is no paging. */ limit?: number; /** The offset for pagination purpose. */ @@ -674,15 +715,17 @@ export interface GlossaryListRelatedTermsQueryParam { queryParameters?: GlossaryListRelatedTermsQueryParamProperties; } -export type GlossaryListRelatedTermsParameters = GlossaryListRelatedTermsQueryParam & - RequestParameters; +export type GlossaryListRelatedTermsParameters = + GlossaryListRelatedTermsQueryParam & RequestParameters; export type GlossaryGetParameters = RequestParameters; export interface GlossaryUpdateBodyParam { - body?: AtlasGlossary; + body: AtlasGlossary; } export interface GlossaryUpdateQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** Whether ignore terms and categories */ ignoreTermsAndCategories?: boolean; } @@ -709,7 +752,8 @@ export interface GlossaryListCategoriesQueryParam { queryParameters?: GlossaryListCategoriesQueryParamProperties; } -export type GlossaryListCategoriesParameters = GlossaryListCategoriesQueryParam & RequestParameters; +export type GlossaryListCategoriesParameters = + GlossaryListCategoriesQueryParam & RequestParameters; export interface GlossaryListCategoriesHeadersQueryParamProperties { /** The page size - by default there is no paging. */ @@ -724,9 +768,20 @@ export interface GlossaryListCategoriesHeadersQueryParam { queryParameters?: GlossaryListCategoriesHeadersQueryParamProperties; } -export type GlossaryListCategoriesHeadersParameters = GlossaryListCategoriesHeadersQueryParam & +export type GlossaryListCategoriesHeadersParameters = + GlossaryListCategoriesHeadersQueryParam & RequestParameters; + +export interface GlossaryGetDetailedQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; +} + +export interface GlossaryGetDetailedQueryParam { + queryParameters?: GlossaryGetDetailedQueryParamProperties; +} + +export type GlossaryGetDetailedParameters = GlossaryGetDetailedQueryParam & RequestParameters; -export type GlossaryGetDetailedParameters = RequestParameters; export interface GlossaryPartialUpdateBodyParam { /** @@ -737,6 +792,8 @@ export interface GlossaryPartialUpdateBodyParam { } export interface GlossaryPartialUpdateQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** Whether ignore terms and categories */ ignoreTermsAndCategories?: boolean; } @@ -750,6 +807,8 @@ export type GlossaryPartialUpdateParameters = GlossaryPartialUpdateQueryParam & RequestParameters; export interface GlossaryListTermsQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** The page size - by default there is no paging. */ limit?: number; /** The offset for pagination purpose. */ @@ -762,7 +821,8 @@ export interface GlossaryListTermsQueryParam { queryParameters?: GlossaryListTermsQueryParamProperties; } -export type GlossaryListTermsParameters = GlossaryListTermsQueryParam & RequestParameters; +export type GlossaryListTermsParameters = GlossaryListTermsQueryParam & + RequestParameters; export interface GlossaryListTermHeadersQueryParamProperties { /** The page size - by default there is no paging. */ @@ -777,36 +837,65 @@ export interface GlossaryListTermHeadersQueryParam { queryParameters?: GlossaryListTermHeadersQueryParamProperties; } -export type GlossaryListTermHeadersParameters = GlossaryListTermHeadersQueryParam & - RequestParameters; +export type GlossaryListTermHeadersParameters = + GlossaryListTermHeadersQueryParam & RequestParameters; export interface DiscoveryQueryBodyParam { - body?: QueryOptions; + body: QueryOptions; } -export type DiscoveryQueryParameters = DiscoveryQueryBodyParam & RequestParameters; +export interface DiscoveryQueryQueryParamProperties { + /** The API version to use for this operation. */ + "api-version": string; +} + +export interface DiscoveryQueryQueryParam { + queryParameters: DiscoveryQueryQueryParamProperties; +} + +export type DiscoveryQueryParameters = DiscoveryQueryQueryParam & + DiscoveryQueryBodyParam & + RequestParameters; export interface DiscoverySuggestBodyParam { - body?: SuggestOptions; + body: SuggestOptions; } -export type DiscoverySuggestParameters = DiscoverySuggestBodyParam & RequestParameters; +export interface DiscoverySuggestQueryParamProperties { + /** The API version to use for this operation. */ + "api-version": string; +} + +export interface DiscoverySuggestQueryParam { + queryParameters: DiscoverySuggestQueryParamProperties; +} + +export type DiscoverySuggestParameters = DiscoverySuggestQueryParam & + DiscoverySuggestBodyParam & + RequestParameters; export interface DiscoveryAutoCompleteBodyParam { - body?: AutoCompleteOptions; + body: AutoCompleteOptions; +} + +export interface DiscoveryAutoCompleteQueryParamProperties { + /** The API version to use for this operation. */ + "api-version": string; +} + +export interface DiscoveryAutoCompleteQueryParam { + queryParameters: DiscoveryAutoCompleteQueryParamProperties; } -export type DiscoveryAutoCompleteParameters = DiscoveryAutoCompleteBodyParam & RequestParameters; +export type DiscoveryAutoCompleteParameters = DiscoveryAutoCompleteQueryParam & + DiscoveryAutoCompleteBodyParam & + RequestParameters; export interface LineageGetQueryParamProperties { /** The number of hops for lineage. */ depth?: number; - /** - * The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - * - * Possible values: "INPUT", "OUTPUT", "BOTH" - */ - direction: string; + /** The direction of the lineage, which could be INPUT, OUTPUT or BOTH. */ + direction: LineageDirection; } export interface LineageGetQueryParam { @@ -816,12 +905,10 @@ export interface LineageGetQueryParam { export type LineageGetParameters = LineageGetQueryParam & RequestParameters; export interface LineageGetNextPageQueryParamProperties { - /** - * The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - * - * Possible values: "INPUT", "OUTPUT", "BOTH" - */ - direction: string; + /** The API version to use for this operation. */ + "api-version": string; + /** The direction of the lineage, which could be INPUT, OUTPUT or BOTH. */ + direction: LineageDirection; /** The offset for pagination purpose. */ offset?: number; /** The page size - by default there is no paging. */ @@ -832,17 +919,14 @@ export interface LineageGetNextPageQueryParam { queryParameters: LineageGetNextPageQueryParamProperties; } -export type LineageGetNextPageParameters = LineageGetNextPageQueryParam & RequestParameters; +export type LineageGetNextPageParameters = LineageGetNextPageQueryParam & + RequestParameters; export interface LineageGetByUniqueAttributeQueryParamProperties { /** The number of hops for lineage. */ depth?: number; - /** - * The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - * - * Possible values: "INPUT", "OUTPUT", "BOTH" - */ - direction: string; + /** The direction of the lineage, which could be INPUT, OUTPUT or BOTH. */ + direction: LineageDirection; /** * The qualified name of the entity. (This is only an example. qualifiedName can * be changed to other unique attributes) @@ -854,20 +938,22 @@ export interface LineageGetByUniqueAttributeQueryParam { queryParameters: LineageGetByUniqueAttributeQueryParamProperties; } -export type LineageGetByUniqueAttributeParameters = LineageGetByUniqueAttributeQueryParam & - RequestParameters; +export type LineageGetByUniqueAttributeParameters = + LineageGetByUniqueAttributeQueryParam & RequestParameters; export interface RelationshipCreateBodyParam { - body?: AtlasRelationship; + body: AtlasRelationship; } -export type RelationshipCreateParameters = RelationshipCreateBodyParam & RequestParameters; +export type RelationshipCreateParameters = RelationshipCreateBodyParam & + RequestParameters; export interface RelationshipUpdateBodyParam { - body?: AtlasRelationship; + body: AtlasRelationship; } -export type RelationshipUpdateParameters = RelationshipUpdateBodyParam & RequestParameters; +export type RelationshipUpdateParameters = RelationshipUpdateBodyParam & + RequestParameters; export interface RelationshipGetQueryParamProperties { /** Limits whether includes extended information. */ @@ -878,7 +964,8 @@ export interface RelationshipGetQueryParam { queryParameters?: RelationshipGetQueryParamProperties; } -export type RelationshipGetParameters = RelationshipGetQueryParam & RequestParameters; +export type RelationshipGetParameters = RelationshipGetQueryParam & + RequestParameters; export type RelationshipDeleteParameters = RequestParameters; export type TypeGetBusinessMetadataDefByGuidParameters = RequestParameters; export type TypeGetBusinessMetadataDefByNameParameters = RequestParameters; @@ -897,18 +984,16 @@ export type TypeGetByNameParameters = RequestParameters; export type TypeDeleteParameters = RequestParameters; export interface TypeListQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** * Whether include termtemplatedef when return all typedefs. * This is always true * when search filter type=term_template */ includeTermTemplate?: boolean; - /** - * Typedef name as search filter when get typedefs. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - type?: string; + /** Typedef name as search filter when get typedefs. */ + type?: TypeCategory; } export interface TypeListQueryParam { @@ -918,42 +1003,66 @@ export interface TypeListQueryParam { export type TypeListParameters = TypeListQueryParam & RequestParameters; export interface TypeBulkCreateBodyParam { - body?: AtlasTypesDef; + body: AtlasTypesDef; } -export type TypeBulkCreateParameters = TypeBulkCreateBodyParam & RequestParameters; +export type TypeBulkCreateParameters = TypeBulkCreateBodyParam & + RequestParameters; export interface TypeBulkUpdateBodyParam { - body?: AtlasTypesDef; + body: AtlasTypesDef; } -export type TypeBulkUpdateParameters = TypeBulkUpdateBodyParam & RequestParameters; +export type TypeBulkUpdateParameters = TypeBulkUpdateBodyParam & + RequestParameters; export interface TypeBulkDeleteBodyParam { - body?: AtlasTypesDef; + body: AtlasTypesDef; } -export type TypeBulkDeleteParameters = TypeBulkDeleteBodyParam & RequestParameters; +export type TypeBulkDeleteParameters = TypeBulkDeleteBodyParam & + RequestParameters; export interface TypeListHeadersQueryParamProperties { + /** The API version to use for this operation. */ + "api-version"?: string; /** * Whether include termtemplatedef when return all typedefs. * This is always true * when search filter type=term_template */ includeTermTemplate?: boolean; - /** - * Typedef name as search filter when get typedefs. - * - * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" - */ - type?: string; + /** Typedef name as search filter when get typedefs. */ + type?: TypeCategory; } export interface TypeListHeadersQueryParam { queryParameters?: TypeListHeadersQueryParamProperties; } -export type TypeListHeadersParameters = TypeListHeadersQueryParam & RequestParameters; -export type TypeGetTermTemplateDefByGuidParameters = RequestParameters; -export type TypeGetTermTemplateDefByNameParameters = RequestParameters; +export type TypeListHeadersParameters = TypeListHeadersQueryParam & + RequestParameters; + +export interface TypeGetTermTemplateDefByGuidQueryParamProperties { + /** The API version to use for this operation. */ + "api-version": string; +} + +export interface TypeGetTermTemplateDefByGuidQueryParam { + queryParameters: TypeGetTermTemplateDefByGuidQueryParamProperties; +} + +export type TypeGetTermTemplateDefByGuidParameters = + TypeGetTermTemplateDefByGuidQueryParam & RequestParameters; + +export interface TypeGetTermTemplateDefByNameQueryParamProperties { + /** The API version to use for this operation. */ + "api-version": string; +} + +export interface TypeGetTermTemplateDefByNameQueryParam { + queryParameters: TypeGetTermTemplateDefByNameQueryParamProperties; +} + +export type TypeGetTermTemplateDefByNameParameters = + TypeGetTermTemplateDefByNameQueryParam & RequestParameters; diff --git a/sdk/purview/purview-datamap-rest/src/purviewDataMapClient.ts b/sdk/purview/purview-datamap-rest/src/purviewDataMapClient.ts index 4546ec885fe4..662b347374ff 100644 --- a/sdk/purview/purview-datamap-rest/src/purviewDataMapClient.ts +++ b/sdk/purview/purview-datamap-rest/src/purviewDataMapClient.ts @@ -6,20 +6,23 @@ import { logger } from "./logger"; import { TokenCredential } from "@azure/core-auth"; import { PurviewDataMapClient } from "./clientDefinitions"; +/** The optional parameters for the client */ +export interface PurviewDataMapClientOptions extends ClientOptions {} + /** * Initialize a new instance of `PurviewDataMapClient` - * @param endpoint - A sequence of textual characters. + * @param endpointParam - A sequence of textual characters. * @param credentials - uniquely identify client credential * @param options - the parameter for all optional parameters */ export default function createClient( - endpoint: string, + endpointParam: string, credentials: TokenCredential, - options: ClientOptions = {}, + options: PurviewDataMapClientOptions = {}, ): PurviewDataMapClient { - const baseUrl = options.baseUrl ?? `${endpoint}/datamap/api`; - options.apiVersion = options.apiVersion ?? "2023-09-01"; - const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.2`; + const endpointUrl = + options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`; + const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` @@ -33,11 +36,23 @@ export default function createClient( logger: options.loggingOptions?.logger ?? logger.info, }, credentials: { - scopes: options.credentials?.scopes ?? ["https://purview.azure.net/.default"], + scopes: options.credentials?.scopes ?? [ + "https://purview.azure.net/.default", + ], }, }; + const client = getClient( + endpointUrl, + credentials, + options, + ) as PurviewDataMapClient; - const client = getClient(baseUrl, credentials, options) as PurviewDataMapClient; + client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + if (options.apiVersion) { + logger.warning( + "This client does not support client api-version, please change it at the operation level", + ); + } return client; } diff --git a/sdk/purview/purview-datamap-rest/src/responses.ts b/sdk/purview/purview-datamap-rest/src/responses.ts index d5f89fcfc9a9..8cb7aaa55433 100644 --- a/sdk/purview/purview-datamap-rest/src/responses.ts +++ b/sdk/purview/purview-datamap-rest/src/responses.ts @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { RawHttpHeaders } from "@azure/core-rest-pipeline"; import { HttpResponse } from "@azure-rest/core-client"; import { EntityMutationResultOutput, @@ -13,10 +14,10 @@ import { BulkImportResultOutput, AtlasGlossaryOutput, AtlasGlossaryCategoryOutput, + AtlasRelatedCategoryHeaderOutput, AtlasRelatedTermHeaderOutput, AtlasGlossaryTermOutput, AtlasRelatedObjectIdOutput, - AtlasRelatedCategoryHeaderOutput, AtlasGlossaryExtInfoOutput, QueryResultOutput, SuggestResultOutput, @@ -102,23 +103,25 @@ export interface EntityGetDefaultResponse extends HttpResponse { } /** The request has succeeded. */ -export interface EntityPartialUpdateAttributeByGuid200Response extends HttpResponse { +export interface EntityPartialUpdateAttributeByGuid200Response + extends HttpResponse { status: "200"; body: EntityMutationResultOutput; } -export interface EntityPartialUpdateAttributeByGuidDefaultResponse extends HttpResponse { +export interface EntityPartialUpdateAttributeByGuidDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface EntityDeleteOperation200Response extends HttpResponse { +export interface EntityDelete200Response extends HttpResponse { status: "200"; body: EntityMutationResultOutput; } -export interface EntityDeleteOperationDefaultResponse extends HttpResponse { +export interface EntityDeleteDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -139,7 +142,8 @@ export interface EntityRemoveClassification204Response extends HttpResponse { status: "204"; } -export interface EntityRemoveClassificationDefaultResponse extends HttpResponse { +export interface EntityRemoveClassificationDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -170,7 +174,8 @@ export interface EntityUpdateClassifications204Response extends HttpResponse { status: "204"; } -export interface EntityUpdateClassificationsDefaultResponse extends HttpResponse { +export interface EntityUpdateClassificationsDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -181,18 +186,21 @@ export interface EntityGetByUniqueAttributes200Response extends HttpResponse { body: AtlasEntityWithExtInfoOutput; } -export interface EntityGetByUniqueAttributesDefaultResponse extends HttpResponse { +export interface EntityGetByUniqueAttributesDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface EntityPartialUpdateByUniqueAttributes200Response extends HttpResponse { +export interface EntityPartialUpdateByUniqueAttributes200Response + extends HttpResponse { status: "200"; body: EntityMutationResultOutput; } -export interface EntityPartialUpdateByUniqueAttributesDefaultResponse extends HttpResponse { +export interface EntityPartialUpdateByUniqueAttributesDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -203,37 +211,44 @@ export interface EntityDeleteByUniqueAttribute200Response extends HttpResponse { body: EntityMutationResultOutput; } -export interface EntityDeleteByUniqueAttributeDefaultResponse extends HttpResponse { +export interface EntityDeleteByUniqueAttributeDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityRemoveClassificationByUniqueAttribute204Response extends HttpResponse { +export interface EntityRemoveClassificationByUniqueAttribute204Response + extends HttpResponse { status: "204"; } -export interface EntityRemoveClassificationByUniqueAttributeDefaultResponse extends HttpResponse { +export interface EntityRemoveClassificationByUniqueAttributeDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityAddClassificationsByUniqueAttribute204Response extends HttpResponse { +export interface EntityAddClassificationsByUniqueAttribute204Response + extends HttpResponse { status: "204"; } -export interface EntityAddClassificationsByUniqueAttributeDefaultResponse extends HttpResponse { +export interface EntityAddClassificationsByUniqueAttributeDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityUpdateClassificationsByUniqueAttribute204Response extends HttpResponse { +export interface EntityUpdateClassificationsByUniqueAttribute204Response + extends HttpResponse { status: "204"; } -export interface EntityUpdateClassificationsByUniqueAttributeDefaultResponse extends HttpResponse { +export interface EntityUpdateClassificationsByUniqueAttributeDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -244,7 +259,8 @@ export interface EntityBulkSetClassifications200Response extends HttpResponse { body: string[]; } -export interface EntityBulkSetClassificationsDefaultResponse extends HttpResponse { +export interface EntityBulkSetClassificationsDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -255,7 +271,8 @@ export interface EntityListByUniqueAttributes200Response extends HttpResponse { body: AtlasEntitiesWithExtInfoOutput; } -export interface EntityListByUniqueAttributesDefaultResponse extends HttpResponse { +export interface EntityListByUniqueAttributesDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -276,49 +293,63 @@ export interface EntityRemoveBusinessMetadata204Response extends HttpResponse { status: "204"; } -export interface EntityRemoveBusinessMetadataDefaultResponse extends HttpResponse { +export interface EntityRemoveBusinessMetadataDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityAddOrUpdateBusinessMetadata204Response extends HttpResponse { +export interface EntityAddOrUpdateBusinessMetadata204Response + extends HttpResponse { status: "204"; } -export interface EntityAddOrUpdateBusinessMetadataDefaultResponse extends HttpResponse { +export interface EntityAddOrUpdateBusinessMetadataDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityRemoveBusinessMetadataAttributes204Response extends HttpResponse { +export interface EntityRemoveBusinessMetadataAttributes204Response + extends HttpResponse { status: "204"; } -export interface EntityRemoveBusinessMetadataAttributesDefaultResponse extends HttpResponse { +export interface EntityRemoveBusinessMetadataAttributesDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityAddOrUpdateBusinessMetadataAttributes204Response extends HttpResponse { +export interface EntityAddOrUpdateBusinessMetadataAttributes204Response + extends HttpResponse { status: "204"; } -export interface EntityAddOrUpdateBusinessMetadataAttributesDefaultResponse extends HttpResponse { +export interface EntityAddOrUpdateBusinessMetadataAttributesDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } +export interface EntityGetSampleBusinessMetadataTemplate200Headers { + "content-type": "application/octet-stream"; +} + /** The request has succeeded. */ -export interface EntityGetSampleBusinessMetadataTemplate200Response extends HttpResponse { +export interface EntityGetSampleBusinessMetadataTemplate200Response + extends HttpResponse { status: "200"; /** Value may contain any sequence of octets */ body: Uint8Array; + headers: RawHttpHeaders & EntityGetSampleBusinessMetadataTemplate200Headers; } -export interface EntityGetSampleBusinessMetadataTemplateDefaultResponse extends HttpResponse { +export interface EntityGetSampleBusinessMetadataTemplateDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -329,7 +360,8 @@ export interface EntityImportBusinessMetadata200Response extends HttpResponse { body: BulkImportResultOutput; } -export interface EntityImportBusinessMetadataDefaultResponse extends HttpResponse { +export interface EntityImportBusinessMetadataDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -365,42 +397,50 @@ export interface EntityAddLabelDefaultResponse extends HttpResponse { } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityRemoveLabelsByUniqueAttribute204Response extends HttpResponse { +export interface EntityRemoveLabelsByUniqueAttribute204Response + extends HttpResponse { status: "204"; } -export interface EntityRemoveLabelsByUniqueAttributeDefaultResponse extends HttpResponse { +export interface EntityRemoveLabelsByUniqueAttributeDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntitySetLabelsByUniqueAttribute204Response extends HttpResponse { +export interface EntitySetLabelsByUniqueAttribute204Response + extends HttpResponse { status: "204"; } -export interface EntitySetLabelsByUniqueAttributeDefaultResponse extends HttpResponse { +export interface EntitySetLabelsByUniqueAttributeDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityAddLabelsByUniqueAttribute204Response extends HttpResponse { +export interface EntityAddLabelsByUniqueAttribute204Response + extends HttpResponse { status: "204"; } -export interface EntityAddLabelsByUniqueAttributeDefaultResponse extends HttpResponse { +export interface EntityAddLabelsByUniqueAttributeDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface EntityMoveEntitiesToCollection200Response extends HttpResponse { +export interface EntityMoveEntitiesToCollection200Response + extends HttpResponse { status: "200"; body: EntityMutationResultOutput; } -export interface EntityMoveEntitiesToCollectionDefaultResponse extends HttpResponse { +export interface EntityMoveEntitiesToCollectionDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -487,7 +527,8 @@ export interface GlossaryPartialUpdateCategory200Response extends HttpResponse { body: AtlasGlossaryCategoryOutput; } -export interface GlossaryPartialUpdateCategoryDefaultResponse extends HttpResponse { +export interface GlossaryPartialUpdateCategoryDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -498,7 +539,8 @@ export interface GlossaryListRelatedCategories200Response extends HttpResponse { body: Record>; } -export interface GlossaryListRelatedCategoriesDefaultResponse extends HttpResponse { +export interface GlossaryListRelatedCategoriesDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -580,12 +622,14 @@ export interface GlossaryCreateTermsDefaultResponse extends HttpResponse { } /** The request has succeeded. */ -export interface GlossaryListEntitiesAssignedWithTerm200Response extends HttpResponse { +export interface GlossaryListEntitiesAssignedWithTerm200Response + extends HttpResponse { status: "200"; body: Array; } -export interface GlossaryListEntitiesAssignedWithTermDefaultResponse extends HttpResponse { +export interface GlossaryListEntitiesAssignedWithTermDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -595,17 +639,20 @@ export interface GlossaryAssignTermToEntities204Response extends HttpResponse { status: "204"; } -export interface GlossaryAssignTermToEntitiesDefaultResponse extends HttpResponse { +export interface GlossaryAssignTermToEntitiesDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface GlossaryDeleteTermAssignmentFromEntities204Response extends HttpResponse { +export interface GlossaryDeleteTermAssignmentFromEntities204Response + extends HttpResponse { status: "204"; } -export interface GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse extends HttpResponse { +export interface GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -644,11 +691,11 @@ export interface GlossaryUpdateDefaultResponse extends HttpResponse { } /** There is no content to send for this request, but the headers may be useful. */ -export interface GlossaryDeleteOperation204Response extends HttpResponse { +export interface GlossaryDelete204Response extends HttpResponse { status: "204"; } -export interface GlossaryDeleteOperationDefaultResponse extends HttpResponse { +export interface GlossaryDeleteDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -670,7 +717,8 @@ export interface GlossaryListCategoriesHeaders200Response extends HttpResponse { body: Array; } -export interface GlossaryListCategoriesHeadersDefaultResponse extends HttpResponse { +export interface GlossaryListCategoriesHeadersDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -780,7 +828,8 @@ export interface LineageGetByUniqueAttribute200Response extends HttpResponse { body: AtlasLineageInfoOutput; } -export interface LineageGetByUniqueAttributeDefaultResponse extends HttpResponse { +export interface LineageGetByUniqueAttributeDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -819,55 +868,63 @@ export interface RelationshipGetDefaultResponse extends HttpResponse { } /** There is no content to send for this request, but the headers may be useful. */ -export interface RelationshipDeleteOperation204Response extends HttpResponse { +export interface RelationshipDelete204Response extends HttpResponse { status: "204"; } -export interface RelationshipDeleteOperationDefaultResponse extends HttpResponse { +export interface RelationshipDeleteDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface TypeGetBusinessMetadataDefByGuid200Response extends HttpResponse { +export interface TypeGetBusinessMetadataDefByGuid200Response + extends HttpResponse { status: "200"; body: AtlasBusinessMetadataDefOutput; } -export interface TypeGetBusinessMetadataDefByGuidDefaultResponse extends HttpResponse { +export interface TypeGetBusinessMetadataDefByGuidDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface TypeGetBusinessMetadataDefByName200Response extends HttpResponse { +export interface TypeGetBusinessMetadataDefByName200Response + extends HttpResponse { status: "200"; body: AtlasBusinessMetadataDefOutput; } -export interface TypeGetBusinessMetadataDefByNameDefaultResponse extends HttpResponse { +export interface TypeGetBusinessMetadataDefByNameDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface TypeGetClassificationDefByGuid200Response extends HttpResponse { +export interface TypeGetClassificationDefByGuid200Response + extends HttpResponse { status: "200"; body: AtlasClassificationDefOutput; } -export interface TypeGetClassificationDefByGuidDefaultResponse extends HttpResponse { +export interface TypeGetClassificationDefByGuidDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface TypeGetClassificationDefByName200Response extends HttpResponse { +export interface TypeGetClassificationDefByName200Response + extends HttpResponse { status: "200"; body: AtlasClassificationDefOutput; } -export interface TypeGetClassificationDefByNameDefaultResponse extends HttpResponse { +export interface TypeGetClassificationDefByNameDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -922,7 +979,8 @@ export interface TypeGetRelationshipDefByGuid200Response extends HttpResponse { body: AtlasRelationshipDefOutput; } -export interface TypeGetRelationshipDefByGuidDefaultResponse extends HttpResponse { +export interface TypeGetRelationshipDefByGuidDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -933,7 +991,8 @@ export interface TypeGetRelationshipDefByName200Response extends HttpResponse { body: AtlasRelationshipDefOutput; } -export interface TypeGetRelationshipDefByNameDefaultResponse extends HttpResponse { +export interface TypeGetRelationshipDefByNameDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -983,11 +1042,11 @@ export interface TypeGetByNameDefaultResponse extends HttpResponse { } /** There is no content to send for this request, but the headers may be useful. */ -export interface TypeDeleteOperation204Response extends HttpResponse { +export interface TypeDelete204Response extends HttpResponse { status: "204"; } -export interface TypeDeleteOperationDefaultResponse extends HttpResponse { +export interface TypeDeleteDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -1052,7 +1111,8 @@ export interface TypeGetTermTemplateDefByGuid200Response extends HttpResponse { body: TermTemplateDefOutput; } -export interface TypeGetTermTemplateDefByGuidDefaultResponse extends HttpResponse { +export interface TypeGetTermTemplateDefByGuidDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -1063,7 +1123,8 @@ export interface TypeGetTermTemplateDefByName200Response extends HttpResponse { body: TermTemplateDefOutput; } -export interface TypeGetTermTemplateDefByNameDefaultResponse extends HttpResponse { +export interface TypeGetTermTemplateDefByNameDefaultResponse + extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } diff --git a/sdk/purview/purview-datamap-rest/src/serializeHelper.ts b/sdk/purview/purview-datamap-rest/src/serializeHelper.ts index 593ee9fcc7ba..a19f11ca222a 100644 --- a/sdk/purview/purview-datamap-rest/src/serializeHelper.ts +++ b/sdk/purview/purview-datamap-rest/src/serializeHelper.ts @@ -1,7 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export function buildMultiCollection(items: string[], parameterName: string): string { +export function buildMultiCollection( + items: string[], + parameterName: string, +): string { return items .map((item, index) => { if (index === 0) { diff --git a/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts b/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts index b6c79ab45eb7..505d58841933 100644 --- a/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts +++ b/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts @@ -28,9 +28,10 @@ hive_database,hive_db_1,bmWithAllTypes.attr8,"Awesome Attribute 1",name`); const response = await client.path("/atlas/v2/entity/businessmetadata/import").post({ contentType: "multipart/form-data", - body: { - file: createFile(fileContent, "template_2.csv"), - }, + body: [{ + name: "file", + body: { file: createFile(fileContent, "template_2.csv"), } + }], }); assert.strictEqual(isUnexpected(response), false); }); From d4ca7172ea51121214f56e73f86f7ee464c947a0 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Sat, 12 Oct 2024 11:37:30 +0800 Subject: [PATCH 2/8] update --- sdk/purview/purview-datamap-rest/assets.json | 2 +- .../purview-datamap-rest/test/public/entityTest.spec.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/purview/purview-datamap-rest/assets.json b/sdk/purview/purview-datamap-rest/assets.json index af63526b0a75..8073e79aa4f6 100644 --- a/sdk/purview/purview-datamap-rest/assets.json +++ b/sdk/purview/purview-datamap-rest/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/purview/purview-datamap-rest", - "Tag": "js/purview/purview-datamap-rest_5cd5118b52" + "Tag": "js/purview/purview-datamap-rest_47b9910f06" } diff --git a/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts b/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts index 505d58841933..df5c33685279 100644 --- a/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts +++ b/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts @@ -30,7 +30,8 @@ hive_database,hive_db_1,bmWithAllTypes.attr8,"Awesome Attribute 1",name`); contentType: "multipart/form-data", body: [{ name: "file", - body: { file: createFile(fileContent, "template_2.csv"), } + body: fileContent, + filename: "template_2.csv" }], }); assert.strictEqual(isUnexpected(response), false); From bb92a0744c7660eff2486b2b7d209050140cfedd Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:38:38 +0800 Subject: [PATCH 3/8] Update responses.ts --- sdk/purview/purview-datamap-rest/src/responses.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sdk/purview/purview-datamap-rest/src/responses.ts b/sdk/purview/purview-datamap-rest/src/responses.ts index 74eb307250e5..8cb7aaa55433 100644 --- a/sdk/purview/purview-datamap-rest/src/responses.ts +++ b/sdk/purview/purview-datamap-rest/src/responses.ts @@ -1,14 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -<<<<<<< HEAD import { RawHttpHeaders } from "@azure/core-rest-pipeline"; import { HttpResponse } from "@azure-rest/core-client"; import { -======= -import type { HttpResponse } from "@azure-rest/core-client"; -import type { ->>>>>>> main EntityMutationResultOutput, AtlasErrorResponseOutput, AtlasEntitiesWithExtInfoOutput, From a9d93499dffe478fb9fe9eed5d18e569f0993d4a Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:44:27 +0800 Subject: [PATCH 4/8] update --- .../purview-datamap-rest/review/purview-datamap.api.md | 7 ------- .../purview-datamap-rest/test/public/entityTest.spec.ts | 1 - 2 files changed, 8 deletions(-) diff --git a/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md b/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md index 15f71564c99f..e09519f12061 100644 --- a/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md +++ b/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md @@ -10,18 +10,11 @@ import { createFile } from '@azure/core-rest-pipeline'; import { createFileFromStream } from '@azure/core-rest-pipeline'; import { CreateFileFromStreamOptions } from '@azure/core-rest-pipeline'; import { CreateFileOptions } from '@azure/core-rest-pipeline'; -<<<<<<< HEAD import { HttpResponse } from '@azure-rest/core-client'; import { RawHttpHeaders } from '@azure/core-rest-pipeline'; import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; -======= -import type { HttpResponse } from '@azure-rest/core-client'; -import type { RequestParameters } from '@azure-rest/core-client'; import type { StreamableMethod } from '@azure-rest/core-client'; import type { TokenCredential } from '@azure/core-auth'; ->>>>>>> main // @public export interface AtlasAttributeDef { diff --git a/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts b/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts index 0f669f5d5a61..1d83ceba8152 100644 --- a/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts +++ b/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts @@ -6,7 +6,6 @@ import { assert } from "chai"; import { createRecorder } from "./utils/recordedClient"; import type { Context } from "mocha"; import { createClient } from "./utils/recordedClient"; -import { createFile } from "../../src/index"; import { isUnexpected } from "../../src/isUnexpected"; describe("purview datamap entity test", () => { From be97d268754ebef50c8d92a180fb8cc511e2bdff Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:55:34 +0800 Subject: [PATCH 5/8] format --- .../src/clientDefinitions.ts | 375 +++++------------- .../purview-datamap-rest/src/isUnexpected.ts | 201 +++------- .../purview-datamap-rest/src/models.ts | 23 +- .../purview-datamap-rest/src/outputModels.ts | 5 +- .../purview-datamap-rest/src/parameters.ts | 183 ++++----- .../src/purviewDataMapClient.ts | 13 +- .../purview-datamap-rest/src/responses.ts | 165 +++----- .../src/serializeHelper.ts | 5 +- .../test/public/entityTest.spec.ts | 12 +- 9 files changed, 299 insertions(+), 683 deletions(-) diff --git a/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts b/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts index 49c6c2f084ad..f96dd1ebd6dc 100644 --- a/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts +++ b/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts @@ -307,18 +307,14 @@ export interface EntityCreateOrUpdate { */ post( options: EntityCreateOrUpdateParameters, - ): StreamableMethod< - EntityCreateOrUpdate200Response | EntityCreateOrUpdateDefaultResponse - >; + ): StreamableMethod; } export interface EntityListByGuids { /** List entities in bulk identified by its GUIDs. */ get( options: EntityListByGuidsParameters, - ): StreamableMethod< - EntityListByGuids200Response | EntityListByGuidsDefaultResponse - >; + ): StreamableMethod; /** * Create or update entities in bulk. * Existing entity is matched using its unique @@ -332,8 +328,7 @@ export interface EntityListByGuids { post( options: EntityBulkCreateOrUpdateParameters, ): StreamableMethod< - | EntityBulkCreateOrUpdate200Response - | EntityBulkCreateOrUpdateDefaultResponse + EntityBulkCreateOrUpdate200Response | EntityBulkCreateOrUpdateDefaultResponse >; /** * Delete a list of entities in bulk identified by their GUIDs or unique @@ -341,18 +336,14 @@ export interface EntityListByGuids { */ delete( options: EntityBulkDeleteParameters, - ): StreamableMethod< - EntityBulkDelete200Response | EntityBulkDeleteDefaultResponse - >; + ): StreamableMethod; } export interface EntityAddClassification { /** Associate a classification to multiple entities in bulk. */ post( options: EntityAddClassificationParameters, - ): StreamableMethod< - EntityAddClassification204Response | EntityAddClassificationDefaultResponse - >; + ): StreamableMethod; } export interface EntityGet { @@ -383,15 +374,12 @@ export interface EntityGetClassification { /** Get classification for a given entity represented by a GUID. */ get( options?: EntityGetClassificationParameters, - ): StreamableMethod< - EntityGetClassification200Response | EntityGetClassificationDefaultResponse - >; + ): StreamableMethod; /** Delete a given classification from an existing entity represented by a GUID. */ delete( options?: EntityRemoveClassificationParameters, ): StreamableMethod< - | EntityRemoveClassification204Response - | EntityRemoveClassificationDefaultResponse + EntityRemoveClassification204Response | EntityRemoveClassificationDefaultResponse >; } @@ -400,22 +388,19 @@ export interface EntityGetClassifications { get( options?: EntityGetClassificationsParameters, ): StreamableMethod< - | EntityGetClassifications200Response - | EntityGetClassificationsDefaultResponse + EntityGetClassifications200Response | EntityGetClassificationsDefaultResponse >; /** Add classifications to an existing entity represented by a GUID. */ post( options: EntityAddClassificationsParameters, ): StreamableMethod< - | EntityAddClassifications204Response - | EntityAddClassificationsDefaultResponse + EntityAddClassifications204Response | EntityAddClassificationsDefaultResponse >; /** Update classifications to an existing entity represented by a guid. */ put( options: EntityUpdateClassificationsParameters, ): StreamableMethod< - | EntityUpdateClassifications204Response - | EntityUpdateClassificationsDefaultResponse + EntityUpdateClassifications204Response | EntityUpdateClassificationsDefaultResponse >; } @@ -439,8 +424,7 @@ export interface EntityGetByUniqueAttributes { get( options?: EntityGetByUniqueAttributesParameters, ): StreamableMethod< - | EntityGetByUniqueAttributes200Response - | EntityGetByUniqueAttributesDefaultResponse + EntityGetByUniqueAttributes200Response | EntityGetByUniqueAttributesDefaultResponse >; /** * Update entity partially - Allow a subset of attributes to be updated on an @@ -483,8 +467,7 @@ export interface EntityGetByUniqueAttributes { delete( options?: EntityDeleteByUniqueAttributeParameters, ): StreamableMethod< - | EntityDeleteByUniqueAttribute200Response - | EntityDeleteByUniqueAttributeDefaultResponse + EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributeDefaultResponse >; } @@ -523,8 +506,7 @@ export interface EntityBulkSetClassifications { post( options: EntityBulkSetClassificationsParameters, ): StreamableMethod< - | EntityBulkSetClassifications200Response - | EntityBulkSetClassificationsDefaultResponse + EntityBulkSetClassifications200Response | EntityBulkSetClassificationsDefaultResponse >; } @@ -552,8 +534,7 @@ export interface EntityListByUniqueAttributes { get( options?: EntityListByUniqueAttributesParameters, ): StreamableMethod< - | EntityListByUniqueAttributes200Response - | EntityListByUniqueAttributesDefaultResponse + EntityListByUniqueAttributes200Response | EntityListByUniqueAttributesDefaultResponse >; } @@ -561,9 +542,7 @@ export interface EntityGetHeader { /** Get entity header given its GUID. */ get( options?: EntityGetHeaderParameters, - ): StreamableMethod< - EntityGetHeader200Response | EntityGetHeaderDefaultResponse - >; + ): StreamableMethod; } export interface EntityRemoveBusinessMetadata { @@ -571,15 +550,13 @@ export interface EntityRemoveBusinessMetadata { delete( options: EntityRemoveBusinessMetadataParameters, ): StreamableMethod< - | EntityRemoveBusinessMetadata204Response - | EntityRemoveBusinessMetadataDefaultResponse + EntityRemoveBusinessMetadata204Response | EntityRemoveBusinessMetadataDefaultResponse >; /** Add business metadata to an entity. */ post( options: EntityAddOrUpdateBusinessMetadataParameters, ): StreamableMethod< - | EntityAddOrUpdateBusinessMetadata204Response - | EntityAddOrUpdateBusinessMetadataDefaultResponse + EntityAddOrUpdateBusinessMetadata204Response | EntityAddOrUpdateBusinessMetadataDefaultResponse >; } @@ -615,8 +592,7 @@ export interface EntityImportBusinessMetadata { post( options: EntityImportBusinessMetadataParameters, ): StreamableMethod< - | EntityImportBusinessMetadata200Response - | EntityImportBusinessMetadataDefaultResponse + EntityImportBusinessMetadata200Response | EntityImportBusinessMetadataDefaultResponse >; } @@ -624,21 +600,15 @@ export interface EntityRemoveLabels { /** Delete given labels to a given entity. */ delete( options?: EntityRemoveLabelsParameters, - ): StreamableMethod< - EntityRemoveLabels204Response | EntityRemoveLabelsDefaultResponse - >; + ): StreamableMethod; /** Set labels to a given entity. */ post( options?: EntitySetLabelsParameters, - ): StreamableMethod< - EntitySetLabels204Response | EntitySetLabelsDefaultResponse - >; + ): StreamableMethod; /** Add given labels to a given entity. */ put( options?: EntityAddLabelParameters, - ): StreamableMethod< - EntityAddLabel204Response | EntityAddLabelDefaultResponse - >; + ): StreamableMethod; } export interface EntityRemoveLabelsByUniqueAttribute { @@ -683,8 +653,7 @@ export interface EntityRemoveLabelsByUniqueAttribute { post( options?: EntitySetLabelsByUniqueAttributeParameters, ): StreamableMethod< - | EntitySetLabelsByUniqueAttribute204Response - | EntitySetLabelsByUniqueAttributeDefaultResponse + EntitySetLabelsByUniqueAttribute204Response | EntitySetLabelsByUniqueAttributeDefaultResponse >; /** * Add given labels to a given entity identified by its type and unique @@ -706,8 +675,7 @@ export interface EntityRemoveLabelsByUniqueAttribute { put( options?: EntityAddLabelsByUniqueAttributeParameters, ): StreamableMethod< - | EntityAddLabelsByUniqueAttribute204Response - | EntityAddLabelsByUniqueAttributeDefaultResponse + EntityAddLabelsByUniqueAttribute204Response | EntityAddLabelsByUniqueAttributeDefaultResponse >; } @@ -716,8 +684,7 @@ export interface EntityMoveEntitiesToCollection { post( options: EntityMoveEntitiesToCollectionParameters, ): StreamableMethod< - | EntityMoveEntitiesToCollection200Response - | EntityMoveEntitiesToCollectionDefaultResponse + EntityMoveEntitiesToCollection200Response | EntityMoveEntitiesToCollectionDefaultResponse >; } @@ -738,9 +705,7 @@ export interface GlossaryList { /** Create a glossary. */ post( options: GlossaryCreateParameters, - ): StreamableMethod< - GlossaryCreate200Response | GlossaryCreateDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryCreateCategories { @@ -748,8 +713,7 @@ export interface GlossaryCreateCategories { post( options: GlossaryCreateCategoriesParameters, ): StreamableMethod< - | GlossaryCreateCategories200Response - | GlossaryCreateCategoriesDefaultResponse + GlossaryCreateCategories200Response | GlossaryCreateCategoriesDefaultResponse >; } @@ -757,30 +721,22 @@ export interface GlossaryCreateCategory { /** Create a glossary category. */ post( options: GlossaryCreateCategoryParameters, - ): StreamableMethod< - GlossaryCreateCategory200Response | GlossaryCreateCategoryDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryGetCategory { /** Get specific glossary category by its GUID. */ get( options?: GlossaryGetCategoryParameters, - ): StreamableMethod< - GlossaryGetCategory200Response | GlossaryGetCategoryDefaultResponse - >; + ): StreamableMethod; /** Update the given glossary category by its GUID. */ put( options: GlossaryUpdateCategoryParameters, - ): StreamableMethod< - GlossaryUpdateCategory200Response | GlossaryUpdateCategoryDefaultResponse - >; + ): StreamableMethod; /** Delete a glossary category. */ delete( options?: GlossaryDeleteCategoryParameters, - ): StreamableMethod< - GlossaryDeleteCategory204Response | GlossaryDeleteCategoryDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryPartialUpdateCategory { @@ -791,8 +747,7 @@ export interface GlossaryPartialUpdateCategory { put( options: GlossaryPartialUpdateCategoryParameters, ): StreamableMethod< - | GlossaryPartialUpdateCategory200Response - | GlossaryPartialUpdateCategoryDefaultResponse + GlossaryPartialUpdateCategory200Response | GlossaryPartialUpdateCategoryDefaultResponse >; } @@ -804,8 +759,7 @@ export interface GlossaryListRelatedCategories { get( options?: GlossaryListRelatedCategoriesParameters, ): StreamableMethod< - | GlossaryListRelatedCategories200Response - | GlossaryListRelatedCategoriesDefaultResponse + GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesDefaultResponse >; } @@ -814,8 +768,7 @@ export interface GlossaryListCategoryTerms { get( options?: GlossaryListCategoryTermsParameters, ): StreamableMethod< - | GlossaryListCategoryTerms200Response - | GlossaryListCategoryTermsDefaultResponse + GlossaryListCategoryTerms200Response | GlossaryListCategoryTermsDefaultResponse >; } @@ -823,30 +776,22 @@ export interface GlossaryCreateTerm { /** Create a glossary term. */ post( options: GlossaryCreateTermParameters, - ): StreamableMethod< - GlossaryCreateTerm200Response | GlossaryCreateTermDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryGetTerm { /** Get a specific glossary term by its GUID. */ get( options?: GlossaryGetTermParameters, - ): StreamableMethod< - GlossaryGetTerm200Response | GlossaryGetTermDefaultResponse - >; + ): StreamableMethod; /** Update the given glossary term by its GUID. */ put( options: GlossaryUpdateTermParameters, - ): StreamableMethod< - GlossaryUpdateTerm200Response | GlossaryUpdateTermDefaultResponse - >; + ): StreamableMethod; /** Delete a glossary term. */ delete( options?: GlossaryDeleteTermParameters, - ): StreamableMethod< - GlossaryDeleteTerm204Response | GlossaryDeleteTermDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryPartialUpdateTerm { @@ -857,8 +802,7 @@ export interface GlossaryPartialUpdateTerm { put( options: GlossaryPartialUpdateTermParameters, ): StreamableMethod< - | GlossaryPartialUpdateTerm200Response - | GlossaryPartialUpdateTermDefaultResponse + GlossaryPartialUpdateTerm200Response | GlossaryPartialUpdateTermDefaultResponse >; } @@ -866,9 +810,7 @@ export interface GlossaryCreateTerms { /** Create glossary terms in bulk. */ post( options: GlossaryCreateTermsParameters, - ): StreamableMethod< - GlossaryCreateTerms200Response | GlossaryCreateTermsDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryListEntitiesAssignedWithTerm { @@ -893,8 +835,7 @@ export interface GlossaryListEntitiesAssignedWithTerm { post( options: GlossaryAssignTermToEntitiesParameters, ): StreamableMethod< - | GlossaryAssignTermToEntities204Response - | GlossaryAssignTermToEntitiesDefaultResponse + GlossaryAssignTermToEntities204Response | GlossaryAssignTermToEntitiesDefaultResponse >; /** Delete the term assignment for the given list of related objects. */ delete( @@ -913,8 +854,7 @@ export interface GlossaryListRelatedTerms { get( options?: GlossaryListRelatedTermsParameters, ): StreamableMethod< - | GlossaryListRelatedTerms200Response - | GlossaryListRelatedTermsDefaultResponse + GlossaryListRelatedTerms200Response | GlossaryListRelatedTermsDefaultResponse >; } @@ -926,18 +866,14 @@ export interface GlossaryGet { /** Update the given glossary. */ put( options: GlossaryUpdateParameters, - ): StreamableMethod< - GlossaryUpdate200Response | GlossaryUpdateDefaultResponse - >; + ): StreamableMethod; /** * Delete a glossary. Will delete underlying terms/categories together. Recommend * separate delete terms and categories. */ delete( options?: GlossaryDeleteParameters, - ): StreamableMethod< - GlossaryDelete204Response | GlossaryDeleteDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryListCategories { @@ -947,9 +883,7 @@ export interface GlossaryListCategories { */ get( options?: GlossaryListCategoriesParameters, - ): StreamableMethod< - GlossaryListCategories200Response | GlossaryListCategoriesDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryListCategoriesHeaders { @@ -960,8 +894,7 @@ export interface GlossaryListCategoriesHeaders { get( options?: GlossaryListCategoriesHeadersParameters, ): StreamableMethod< - | GlossaryListCategoriesHeaders200Response - | GlossaryListCategoriesHeadersDefaultResponse + GlossaryListCategoriesHeaders200Response | GlossaryListCategoriesHeadersDefaultResponse >; } @@ -978,9 +911,7 @@ export interface GlossaryGetDetailed { */ get( options?: GlossaryGetDetailedParameters, - ): StreamableMethod< - GlossaryGetDetailed200Response | GlossaryGetDetailedDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryPartialUpdate { @@ -996,9 +927,7 @@ export interface GlossaryPartialUpdate { */ put( options: GlossaryPartialUpdateParameters, - ): StreamableMethod< - GlossaryPartialUpdate200Response | GlossaryPartialUpdateDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryListTerms { @@ -1008,9 +937,7 @@ export interface GlossaryListTerms { */ get( options?: GlossaryListTermsParameters, - ): StreamableMethod< - GlossaryListTerms200Response | GlossaryListTermsDefaultResponse - >; + ): StreamableMethod; } export interface GlossaryListTermHeaders { @@ -1020,36 +947,28 @@ export interface GlossaryListTermHeaders { */ get( options?: GlossaryListTermHeadersParameters, - ): StreamableMethod< - GlossaryListTermHeaders200Response | GlossaryListTermHeadersDefaultResponse - >; + ): StreamableMethod; } export interface DiscoveryQuery { /** Get data using search. */ post( options: DiscoveryQueryParameters, - ): StreamableMethod< - DiscoveryQuery200Response | DiscoveryQueryDefaultResponse - >; + ): StreamableMethod; } export interface DiscoverySuggest { /** Get search suggestions by query criteria. */ post( options: DiscoverySuggestParameters, - ): StreamableMethod< - DiscoverySuggest200Response | DiscoverySuggestDefaultResponse - >; + ): StreamableMethod; } export interface DiscoveryAutoComplete { /** Get auto complete options. */ post( options: DiscoveryAutoCompleteParameters, - ): StreamableMethod< - DiscoveryAutoComplete200Response | DiscoveryAutoCompleteDefaultResponse - >; + ): StreamableMethod; } export interface LineageGet { @@ -1063,9 +982,7 @@ export interface LineageGetNextPage { /** Return immediate next page lineage info about entity with pagination */ get( options: LineageGetNextPageParameters, - ): StreamableMethod< - LineageGetNextPage200Response | LineageGetNextPageDefaultResponse - >; + ): StreamableMethod; } export interface LineageGetByUniqueAttribute { @@ -1090,8 +1007,7 @@ export interface LineageGetByUniqueAttribute { get( options: LineageGetByUniqueAttributeParameters, ): StreamableMethod< - | LineageGetByUniqueAttribute200Response - | LineageGetByUniqueAttributeDefaultResponse + LineageGetByUniqueAttribute200Response | LineageGetByUniqueAttributeDefaultResponse >; } @@ -1099,30 +1015,22 @@ export interface RelationshipCreate { /** Create a new relationship between entities. */ post( options: RelationshipCreateParameters, - ): StreamableMethod< - RelationshipCreate200Response | RelationshipCreateDefaultResponse - >; + ): StreamableMethod; /** Update an existing relationship between entities. */ put( options: RelationshipUpdateParameters, - ): StreamableMethod< - RelationshipUpdate200Response | RelationshipUpdateDefaultResponse - >; + ): StreamableMethod; } export interface RelationshipGet { /** Get relationship information between entities by its GUID. */ get( options?: RelationshipGetParameters, - ): StreamableMethod< - RelationshipGet200Response | RelationshipGetDefaultResponse - >; + ): StreamableMethod; /** Delete a relationship between entities by its GUID. */ delete( options?: RelationshipDeleteParameters, - ): StreamableMethod< - RelationshipDelete204Response | RelationshipDeleteDefaultResponse - >; + ): StreamableMethod; } export interface TypeGetBusinessMetadataDefByGuid { @@ -1130,8 +1038,7 @@ export interface TypeGetBusinessMetadataDefByGuid { get( options?: TypeGetBusinessMetadataDefByGuidParameters, ): StreamableMethod< - | TypeGetBusinessMetadataDefByGuid200Response - | TypeGetBusinessMetadataDefByGuidDefaultResponse + TypeGetBusinessMetadataDefByGuid200Response | TypeGetBusinessMetadataDefByGuidDefaultResponse >; } @@ -1140,8 +1047,7 @@ export interface TypeGetBusinessMetadataDefByName { get( options?: TypeGetBusinessMetadataDefByNameParameters, ): StreamableMethod< - | TypeGetBusinessMetadataDefByName200Response - | TypeGetBusinessMetadataDefByNameDefaultResponse + TypeGetBusinessMetadataDefByName200Response | TypeGetBusinessMetadataDefByNameDefaultResponse >; } @@ -1150,8 +1056,7 @@ export interface TypeGetClassificationDefByGuid { get( options?: TypeGetClassificationDefByGuidParameters, ): StreamableMethod< - | TypeGetClassificationDefByGuid200Response - | TypeGetClassificationDefByGuidDefaultResponse + TypeGetClassificationDefByGuid200Response | TypeGetClassificationDefByGuidDefaultResponse >; } @@ -1160,8 +1065,7 @@ export interface TypeGetClassificationDefByName { get( options?: TypeGetClassificationDefByNameParameters, ): StreamableMethod< - | TypeGetClassificationDefByName200Response - | TypeGetClassificationDefByNameDefaultResponse + TypeGetClassificationDefByName200Response | TypeGetClassificationDefByNameDefaultResponse >; } @@ -1169,36 +1073,28 @@ export interface TypeGetEntityDefByGuid { /** Get the Entity definition for the given GUID. */ get( options?: TypeGetEntityDefByGuidParameters, - ): StreamableMethod< - TypeGetEntityDefByGuid200Response | TypeGetEntityDefByGuidDefaultResponse - >; + ): StreamableMethod; } export interface TypeGetEntityDefByName { /** Get the entity definition by its name (unique). */ get( options?: TypeGetEntityDefByNameParameters, - ): StreamableMethod< - TypeGetEntityDefByName200Response | TypeGetEntityDefByNameDefaultResponse - >; + ): StreamableMethod; } export interface TypeGetEnumDefByGuid { /** Get the enum definition for the given GUID. */ get( options?: TypeGetEnumDefByGuidParameters, - ): StreamableMethod< - TypeGetEnumDefByGuid200Response | TypeGetEnumDefByGuidDefaultResponse - >; + ): StreamableMethod; } export interface TypeGetEnumDefByName { /** Get the enum definition by its name (unique). */ get( options?: TypeGetEnumDefByNameParameters, - ): StreamableMethod< - TypeGetEnumDefByName200Response | TypeGetEnumDefByNameDefaultResponse - >; + ): StreamableMethod; } export interface TypeGetRelationshipDefByGuid { @@ -1206,8 +1102,7 @@ export interface TypeGetRelationshipDefByGuid { get( options?: TypeGetRelationshipDefByGuidParameters, ): StreamableMethod< - | TypeGetRelationshipDefByGuid200Response - | TypeGetRelationshipDefByGuidDefaultResponse + TypeGetRelationshipDefByGuid200Response | TypeGetRelationshipDefByGuidDefaultResponse >; } @@ -1216,8 +1111,7 @@ export interface TypeGetRelationshipDefByName { get( options?: TypeGetRelationshipDefByNameParameters, ): StreamableMethod< - | TypeGetRelationshipDefByName200Response - | TypeGetRelationshipDefByNameDefaultResponse + TypeGetRelationshipDefByName200Response | TypeGetRelationshipDefByNameDefaultResponse >; } @@ -1225,18 +1119,14 @@ export interface TypeGetStructDefByGuid { /** Get the struct definition for the given GUID. */ get( options?: TypeGetStructDefByGuidParameters, - ): StreamableMethod< - TypeGetStructDefByGuid200Response | TypeGetStructDefByGuidDefaultResponse - >; + ): StreamableMethod; } export interface TypeGetStructDefByName { /** Get the struct definition by its name (unique). */ get( options?: TypeGetStructDefByNameParameters, - ): StreamableMethod< - TypeGetStructDefByName200Response | TypeGetStructDefByNameDefaultResponse - >; + ): StreamableMethod; } export interface TypeGetByGuid { @@ -1269,33 +1159,25 @@ export interface TypeList { */ post( options: TypeBulkCreateParameters, - ): StreamableMethod< - TypeBulkCreate200Response | TypeBulkCreateDefaultResponse - >; + ): StreamableMethod; /** * Update all types in bulk, changes detected in the type definitions would be * persisted. */ put( options: TypeBulkUpdateParameters, - ): StreamableMethod< - TypeBulkUpdate200Response | TypeBulkUpdateDefaultResponse - >; + ): StreamableMethod; /** Delete API for all types in bulk. */ delete( options: TypeBulkDeleteParameters, - ): StreamableMethod< - TypeBulkDelete204Response | TypeBulkDeleteDefaultResponse - >; + ): StreamableMethod; } export interface TypeListHeaders { /** List all type definitions returned as a list of minimal information header. */ get( options?: TypeListHeadersParameters, - ): StreamableMethod< - TypeListHeaders200Response | TypeListHeadersDefaultResponse - >; + ): StreamableMethod; } export interface TypeGetTermTemplateDefByGuid { @@ -1303,8 +1185,7 @@ export interface TypeGetTermTemplateDefByGuid { get( options?: TypeGetTermTemplateDefByGuidParameters, ): StreamableMethod< - | TypeGetTermTemplateDefByGuid200Response - | TypeGetTermTemplateDefByGuidDefaultResponse + TypeGetTermTemplateDefByGuid200Response | TypeGetTermTemplateDefByGuidDefaultResponse >; } @@ -1313,8 +1194,7 @@ export interface TypeGetTermTemplateDefByName { get( options?: TypeGetTermTemplateDefByNameParameters, ): StreamableMethod< - | TypeGetTermTemplateDefByName200Response - | TypeGetTermTemplateDefByNameDefaultResponse + TypeGetTermTemplateDefByName200Response | TypeGetTermTemplateDefByNameDefaultResponse >; } @@ -1334,10 +1214,7 @@ export interface Routes { classificationName: string, ): EntityGetClassification; /** Resource for '/atlas/v2/entity/guid/\{guid\}/classifications' has methods for the following verbs: get, post, put */ - ( - path: "/atlas/v2/entity/guid/{guid}/classifications", - guid: string, - ): EntityGetClassifications; + (path: "/atlas/v2/entity/guid/{guid}/classifications", guid: string): EntityGetClassifications; /** Resource for '/atlas/v2/entity/uniqueAttribute/type/\{typeName\}' has methods for the following verbs: get, put, delete */ ( path: "/atlas/v2/entity/uniqueAttribute/type/{typeName}", @@ -1355,9 +1232,7 @@ export interface Routes { typeName: string, ): EntityAddClassificationsByUniqueAttribute; /** Resource for '/atlas/v2/entity/bulk/setClassifications' has methods for the following verbs: post */ - ( - path: "/atlas/v2/entity/bulk/setClassifications", - ): EntityBulkSetClassifications; + (path: "/atlas/v2/entity/bulk/setClassifications"): EntityBulkSetClassifications; /** Resource for '/atlas/v2/entity/bulk/uniqueAttribute/type/\{typeName\}' has methods for the following verbs: get */ ( path: "/atlas/v2/entity/bulk/uniqueAttribute/type/{typeName}", @@ -1381,14 +1256,9 @@ export interface Routes { path: "/atlas/v2/entity/businessmetadata/import/template", ): EntityGetSampleBusinessMetadataTemplate; /** Resource for '/atlas/v2/entity/businessmetadata/import' has methods for the following verbs: post */ - ( - path: "/atlas/v2/entity/businessmetadata/import", - ): EntityImportBusinessMetadata; + (path: "/atlas/v2/entity/businessmetadata/import"): EntityImportBusinessMetadata; /** Resource for '/atlas/v2/entity/guid/\{guid\}/labels' has methods for the following verbs: delete, post, put */ - ( - path: "/atlas/v2/entity/guid/{guid}/labels", - guid: string, - ): EntityRemoveLabels; + (path: "/atlas/v2/entity/guid/{guid}/labels", guid: string): EntityRemoveLabels; /** Resource for '/atlas/v2/entity/uniqueAttribute/type/\{typeName\}/labels' has methods for the following verbs: delete, post, put */ ( path: "/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels", @@ -1403,10 +1273,7 @@ export interface Routes { /** Resource for '/atlas/v2/glossary/category' has methods for the following verbs: post */ (path: "/atlas/v2/glossary/category"): GlossaryCreateCategory; /** Resource for '/atlas/v2/glossary/category/\{categoryId\}' has methods for the following verbs: get, put, delete */ - ( - path: "/atlas/v2/glossary/category/{categoryId}", - categoryId: string, - ): GlossaryGetCategory; + (path: "/atlas/v2/glossary/category/{categoryId}", categoryId: string): GlossaryGetCategory; /** Resource for '/atlas/v2/glossary/category/\{categoryId\}/partial' has methods for the following verbs: put */ ( path: "/atlas/v2/glossary/category/{categoryId}/partial", @@ -1427,10 +1294,7 @@ export interface Routes { /** Resource for '/atlas/v2/glossary/term/\{termId\}' has methods for the following verbs: get, put, delete */ (path: "/atlas/v2/glossary/term/{termId}", termId: string): GlossaryGetTerm; /** Resource for '/atlas/v2/glossary/term/\{termId\}/partial' has methods for the following verbs: put */ - ( - path: "/atlas/v2/glossary/term/{termId}/partial", - termId: string, - ): GlossaryPartialUpdateTerm; + (path: "/atlas/v2/glossary/term/{termId}/partial", termId: string): GlossaryPartialUpdateTerm; /** Resource for '/atlas/v2/glossary/terms' has methods for the following verbs: post */ (path: "/atlas/v2/glossary/terms"): GlossaryCreateTerms; /** Resource for '/atlas/v2/glossary/terms/\{termId\}/assignedEntities' has methods for the following verbs: get, post, delete */ @@ -1439,37 +1303,22 @@ export interface Routes { termId: string, ): GlossaryListEntitiesAssignedWithTerm; /** Resource for '/atlas/v2/glossary/terms/\{termId\}/related' has methods for the following verbs: get */ - ( - path: "/atlas/v2/glossary/terms/{termId}/related", - termId: string, - ): GlossaryListRelatedTerms; + (path: "/atlas/v2/glossary/terms/{termId}/related", termId: string): GlossaryListRelatedTerms; /** Resource for '/atlas/v2/glossary/\{glossaryId\}' has methods for the following verbs: get, put, delete */ (path: "/atlas/v2/glossary/{glossaryId}", glossaryId: string): GlossaryGet; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/categories' has methods for the following verbs: get */ - ( - path: "/atlas/v2/glossary/{glossaryId}/categories", - glossaryId: string, - ): GlossaryListCategories; + (path: "/atlas/v2/glossary/{glossaryId}/categories", glossaryId: string): GlossaryListCategories; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/categories/headers' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/{glossaryId}/categories/headers", glossaryId: string, ): GlossaryListCategoriesHeaders; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/detailed' has methods for the following verbs: get */ - ( - path: "/atlas/v2/glossary/{glossaryId}/detailed", - glossaryId: string, - ): GlossaryGetDetailed; + (path: "/atlas/v2/glossary/{glossaryId}/detailed", glossaryId: string): GlossaryGetDetailed; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/partial' has methods for the following verbs: put */ - ( - path: "/atlas/v2/glossary/{glossaryId}/partial", - glossaryId: string, - ): GlossaryPartialUpdate; + (path: "/atlas/v2/glossary/{glossaryId}/partial", glossaryId: string): GlossaryPartialUpdate; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/terms' has methods for the following verbs: get */ - ( - path: "/atlas/v2/glossary/{glossaryId}/terms", - glossaryId: string, - ): GlossaryListTerms; + (path: "/atlas/v2/glossary/{glossaryId}/terms", glossaryId: string): GlossaryListTerms; /** Resource for '/atlas/v2/glossary/\{glossaryId\}/terms/headers' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/{glossaryId}/terms/headers", @@ -1515,45 +1364,21 @@ export interface Routes { name: string, ): TypeGetClassificationDefByName; /** Resource for '/atlas/v2/types/entitydef/guid/\{guid\}' has methods for the following verbs: get */ - ( - path: "/atlas/v2/types/entitydef/guid/{guid}", - guid: string, - ): TypeGetEntityDefByGuid; + (path: "/atlas/v2/types/entitydef/guid/{guid}", guid: string): TypeGetEntityDefByGuid; /** Resource for '/atlas/v2/types/entitydef/name/\{name\}' has methods for the following verbs: get */ - ( - path: "/atlas/v2/types/entitydef/name/{name}", - name: string, - ): TypeGetEntityDefByName; + (path: "/atlas/v2/types/entitydef/name/{name}", name: string): TypeGetEntityDefByName; /** Resource for '/atlas/v2/types/enumdef/guid/\{guid\}' has methods for the following verbs: get */ - ( - path: "/atlas/v2/types/enumdef/guid/{guid}", - guid: string, - ): TypeGetEnumDefByGuid; + (path: "/atlas/v2/types/enumdef/guid/{guid}", guid: string): TypeGetEnumDefByGuid; /** Resource for '/atlas/v2/types/enumdef/name/\{name\}' has methods for the following verbs: get */ - ( - path: "/atlas/v2/types/enumdef/name/{name}", - name: string, - ): TypeGetEnumDefByName; + (path: "/atlas/v2/types/enumdef/name/{name}", name: string): TypeGetEnumDefByName; /** Resource for '/atlas/v2/types/relationshipdef/guid/\{guid\}' has methods for the following verbs: get */ - ( - path: "/atlas/v2/types/relationshipdef/guid/{guid}", - guid: string, - ): TypeGetRelationshipDefByGuid; + (path: "/atlas/v2/types/relationshipdef/guid/{guid}", guid: string): TypeGetRelationshipDefByGuid; /** Resource for '/atlas/v2/types/relationshipdef/name/\{name\}' has methods for the following verbs: get */ - ( - path: "/atlas/v2/types/relationshipdef/name/{name}", - name: string, - ): TypeGetRelationshipDefByName; + (path: "/atlas/v2/types/relationshipdef/name/{name}", name: string): TypeGetRelationshipDefByName; /** Resource for '/atlas/v2/types/structdef/guid/\{guid\}' has methods for the following verbs: get */ - ( - path: "/atlas/v2/types/structdef/guid/{guid}", - guid: string, - ): TypeGetStructDefByGuid; + (path: "/atlas/v2/types/structdef/guid/{guid}", guid: string): TypeGetStructDefByGuid; /** Resource for '/atlas/v2/types/structdef/name/\{name\}' has methods for the following verbs: get */ - ( - path: "/atlas/v2/types/structdef/name/{name}", - name: string, - ): TypeGetStructDefByName; + (path: "/atlas/v2/types/structdef/name/{name}", name: string): TypeGetStructDefByName; /** Resource for '/atlas/v2/types/typedef/guid/\{guid\}' has methods for the following verbs: get */ (path: "/atlas/v2/types/typedef/guid/{guid}", guid: string): TypeGetByGuid; /** Resource for '/atlas/v2/types/typedef/name/\{name\}' has methods for the following verbs: get, delete */ @@ -1563,15 +1388,9 @@ export interface Routes { /** Resource for '/atlas/v2/types/typedefs/headers' has methods for the following verbs: get */ (path: "/atlas/v2/types/typedefs/headers"): TypeListHeaders; /** Resource for '/types/termtemplatedef/guid/\{guid\}' has methods for the following verbs: get */ - ( - path: "/types/termtemplatedef/guid/{guid}", - guid: string, - ): TypeGetTermTemplateDefByGuid; + (path: "/types/termtemplatedef/guid/{guid}", guid: string): TypeGetTermTemplateDefByGuid; /** Resource for '/types/termtemplatedef/name/\{name\}' has methods for the following verbs: get */ - ( - path: "/types/termtemplatedef/name/{name}", - name: string, - ): TypeGetTermTemplateDefByName; + (path: "/types/termtemplatedef/name/{name}", name: string): TypeGetTermTemplateDefByName; } export type PurviewDataMapClient = Client & { diff --git a/sdk/purview/purview-datamap-rest/src/isUnexpected.ts b/sdk/purview/purview-datamap-rest/src/isUnexpected.ts index ef3e732df449..4f9f4237f24d 100644 --- a/sdk/purview/purview-datamap-rest/src/isUnexpected.ts +++ b/sdk/purview/purview-datamap-rest/src/isUnexpected.ts @@ -205,36 +205,26 @@ const responseMap: Record = { "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}/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": [ + "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/{businessMetadataName}": - ["204"], - "POST /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}": [ - "204", - ], + "DELETE /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}": ["204"], + "POST /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}": ["204"], "GET /atlas/v2/entity/businessmetadata/import/template": ["200"], "POST /atlas/v2/entity/businessmetadata/import": ["200"], "DELETE /atlas/v2/entity/guid/{guid}/labels": ["204"], @@ -308,25 +298,19 @@ const responseMap: Record = { }; export function isUnexpected( - response: - | EntityCreateOrUpdate200Response - | EntityCreateOrUpdateDefaultResponse, + response: EntityCreateOrUpdate200Response | EntityCreateOrUpdateDefaultResponse, ): response is EntityCreateOrUpdateDefaultResponse; export function isUnexpected( response: EntityListByGuids200Response | EntityListByGuidsDefaultResponse, ): response is EntityListByGuidsDefaultResponse; export function isUnexpected( - response: - | EntityBulkCreateOrUpdate200Response - | EntityBulkCreateOrUpdateDefaultResponse, + response: EntityBulkCreateOrUpdate200Response | EntityBulkCreateOrUpdateDefaultResponse, ): response is EntityBulkCreateOrUpdateDefaultResponse; export function isUnexpected( response: EntityBulkDelete200Response | EntityBulkDeleteDefaultResponse, ): response is EntityBulkDeleteDefaultResponse; export function isUnexpected( - response: - | EntityAddClassification204Response - | EntityAddClassificationDefaultResponse, + response: EntityAddClassification204Response | EntityAddClassificationDefaultResponse, ): response is EntityAddClassificationDefaultResponse; export function isUnexpected( response: EntityGet200Response | EntityGetDefaultResponse, @@ -340,34 +324,22 @@ export function isUnexpected( response: EntityDelete200Response | EntityDeleteDefaultResponse, ): response is EntityDeleteDefaultResponse; export function isUnexpected( - response: - | EntityGetClassification200Response - | EntityGetClassificationDefaultResponse, + response: EntityGetClassification200Response | EntityGetClassificationDefaultResponse, ): response is EntityGetClassificationDefaultResponse; export function isUnexpected( - response: - | EntityRemoveClassification204Response - | EntityRemoveClassificationDefaultResponse, + response: EntityRemoveClassification204Response | EntityRemoveClassificationDefaultResponse, ): response is EntityRemoveClassificationDefaultResponse; export function isUnexpected( - response: - | EntityGetClassifications200Response - | EntityGetClassificationsDefaultResponse, + response: EntityGetClassifications200Response | EntityGetClassificationsDefaultResponse, ): response is EntityGetClassificationsDefaultResponse; export function isUnexpected( - response: - | EntityAddClassifications204Response - | EntityAddClassificationsDefaultResponse, + response: EntityAddClassifications204Response | EntityAddClassificationsDefaultResponse, ): response is EntityAddClassificationsDefaultResponse; export function isUnexpected( - response: - | EntityUpdateClassifications204Response - | EntityUpdateClassificationsDefaultResponse, + response: EntityUpdateClassifications204Response | EntityUpdateClassificationsDefaultResponse, ): response is EntityUpdateClassificationsDefaultResponse; export function isUnexpected( - response: - | EntityGetByUniqueAttributes200Response - | EntityGetByUniqueAttributesDefaultResponse, + response: EntityGetByUniqueAttributes200Response | EntityGetByUniqueAttributesDefaultResponse, ): response is EntityGetByUniqueAttributesDefaultResponse; export function isUnexpected( response: @@ -375,9 +347,7 @@ export function isUnexpected( | EntityPartialUpdateByUniqueAttributesDefaultResponse, ): response is EntityPartialUpdateByUniqueAttributesDefaultResponse; export function isUnexpected( - response: - | EntityDeleteByUniqueAttribute200Response - | EntityDeleteByUniqueAttributeDefaultResponse, + response: EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributeDefaultResponse, ): response is EntityDeleteByUniqueAttributeDefaultResponse; export function isUnexpected( response: @@ -395,22 +365,16 @@ export function isUnexpected( | EntityUpdateClassificationsByUniqueAttributeDefaultResponse, ): response is EntityUpdateClassificationsByUniqueAttributeDefaultResponse; export function isUnexpected( - response: - | EntityBulkSetClassifications200Response - | EntityBulkSetClassificationsDefaultResponse, + response: EntityBulkSetClassifications200Response | EntityBulkSetClassificationsDefaultResponse, ): response is EntityBulkSetClassificationsDefaultResponse; export function isUnexpected( - response: - | EntityListByUniqueAttributes200Response - | EntityListByUniqueAttributesDefaultResponse, + response: EntityListByUniqueAttributes200Response | EntityListByUniqueAttributesDefaultResponse, ): response is EntityListByUniqueAttributesDefaultResponse; export function isUnexpected( response: EntityGetHeader200Response | EntityGetHeaderDefaultResponse, ): response is EntityGetHeaderDefaultResponse; export function isUnexpected( - response: - | EntityRemoveBusinessMetadata204Response - | EntityRemoveBusinessMetadataDefaultResponse, + response: EntityRemoveBusinessMetadata204Response | EntityRemoveBusinessMetadataDefaultResponse, ): response is EntityRemoveBusinessMetadataDefaultResponse; export function isUnexpected( response: @@ -433,9 +397,7 @@ export function isUnexpected( | EntityGetSampleBusinessMetadataTemplateDefaultResponse, ): response is EntityGetSampleBusinessMetadataTemplateDefaultResponse; export function isUnexpected( - response: - | EntityImportBusinessMetadata200Response - | EntityImportBusinessMetadataDefaultResponse, + response: EntityImportBusinessMetadata200Response | EntityImportBusinessMetadataDefaultResponse, ): response is EntityImportBusinessMetadataDefaultResponse; export function isUnexpected( response: EntityRemoveLabels204Response | EntityRemoveLabelsDefaultResponse, @@ -473,42 +435,28 @@ export function isUnexpected( response: GlossaryCreate200Response | GlossaryCreateDefaultResponse, ): response is GlossaryCreateDefaultResponse; export function isUnexpected( - response: - | GlossaryCreateCategories200Response - | GlossaryCreateCategoriesDefaultResponse, + response: GlossaryCreateCategories200Response | GlossaryCreateCategoriesDefaultResponse, ): response is GlossaryCreateCategoriesDefaultResponse; export function isUnexpected( - response: - | GlossaryCreateCategory200Response - | GlossaryCreateCategoryDefaultResponse, + response: GlossaryCreateCategory200Response | GlossaryCreateCategoryDefaultResponse, ): response is GlossaryCreateCategoryDefaultResponse; export function isUnexpected( response: GlossaryGetCategory200Response | GlossaryGetCategoryDefaultResponse, ): response is GlossaryGetCategoryDefaultResponse; export function isUnexpected( - response: - | GlossaryUpdateCategory200Response - | GlossaryUpdateCategoryDefaultResponse, + response: GlossaryUpdateCategory200Response | GlossaryUpdateCategoryDefaultResponse, ): response is GlossaryUpdateCategoryDefaultResponse; export function isUnexpected( - response: - | GlossaryDeleteCategory204Response - | GlossaryDeleteCategoryDefaultResponse, + response: GlossaryDeleteCategory204Response | GlossaryDeleteCategoryDefaultResponse, ): response is GlossaryDeleteCategoryDefaultResponse; export function isUnexpected( - response: - | GlossaryPartialUpdateCategory200Response - | GlossaryPartialUpdateCategoryDefaultResponse, + response: GlossaryPartialUpdateCategory200Response | GlossaryPartialUpdateCategoryDefaultResponse, ): response is GlossaryPartialUpdateCategoryDefaultResponse; export function isUnexpected( - response: - | GlossaryListRelatedCategories200Response - | GlossaryListRelatedCategoriesDefaultResponse, + response: GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesDefaultResponse, ): response is GlossaryListRelatedCategoriesDefaultResponse; export function isUnexpected( - response: - | GlossaryListCategoryTerms200Response - | GlossaryListCategoryTermsDefaultResponse, + response: GlossaryListCategoryTerms200Response | GlossaryListCategoryTermsDefaultResponse, ): response is GlossaryListCategoryTermsDefaultResponse; export function isUnexpected( response: GlossaryCreateTerm200Response | GlossaryCreateTermDefaultResponse, @@ -523,9 +471,7 @@ export function isUnexpected( response: GlossaryDeleteTerm204Response | GlossaryDeleteTermDefaultResponse, ): response is GlossaryDeleteTermDefaultResponse; export function isUnexpected( - response: - | GlossaryPartialUpdateTerm200Response - | GlossaryPartialUpdateTermDefaultResponse, + response: GlossaryPartialUpdateTerm200Response | GlossaryPartialUpdateTermDefaultResponse, ): response is GlossaryPartialUpdateTermDefaultResponse; export function isUnexpected( response: GlossaryCreateTerms200Response | GlossaryCreateTermsDefaultResponse, @@ -536,9 +482,7 @@ export function isUnexpected( | GlossaryListEntitiesAssignedWithTermDefaultResponse, ): response is GlossaryListEntitiesAssignedWithTermDefaultResponse; export function isUnexpected( - response: - | GlossaryAssignTermToEntities204Response - | GlossaryAssignTermToEntitiesDefaultResponse, + response: GlossaryAssignTermToEntities204Response | GlossaryAssignTermToEntitiesDefaultResponse, ): response is GlossaryAssignTermToEntitiesDefaultResponse; export function isUnexpected( response: @@ -546,9 +490,7 @@ export function isUnexpected( | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse, ): response is GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse; export function isUnexpected( - response: - | GlossaryListRelatedTerms200Response - | GlossaryListRelatedTermsDefaultResponse, + response: GlossaryListRelatedTerms200Response | GlossaryListRelatedTermsDefaultResponse, ): response is GlossaryListRelatedTermsDefaultResponse; export function isUnexpected( response: GlossaryGet200Response | GlossaryGetDefaultResponse, @@ -560,30 +502,22 @@ export function isUnexpected( response: GlossaryDelete204Response | GlossaryDeleteDefaultResponse, ): response is GlossaryDeleteDefaultResponse; export function isUnexpected( - response: - | GlossaryListCategories200Response - | GlossaryListCategoriesDefaultResponse, + response: GlossaryListCategories200Response | GlossaryListCategoriesDefaultResponse, ): response is GlossaryListCategoriesDefaultResponse; export function isUnexpected( - response: - | GlossaryListCategoriesHeaders200Response - | GlossaryListCategoriesHeadersDefaultResponse, + response: GlossaryListCategoriesHeaders200Response | GlossaryListCategoriesHeadersDefaultResponse, ): response is GlossaryListCategoriesHeadersDefaultResponse; export function isUnexpected( response: GlossaryGetDetailed200Response | GlossaryGetDetailedDefaultResponse, ): response is GlossaryGetDetailedDefaultResponse; export function isUnexpected( - response: - | GlossaryPartialUpdate200Response - | GlossaryPartialUpdateDefaultResponse, + response: GlossaryPartialUpdate200Response | GlossaryPartialUpdateDefaultResponse, ): response is GlossaryPartialUpdateDefaultResponse; export function isUnexpected( response: GlossaryListTerms200Response | GlossaryListTermsDefaultResponse, ): response is GlossaryListTermsDefaultResponse; export function isUnexpected( - response: - | GlossaryListTermHeaders200Response - | GlossaryListTermHeadersDefaultResponse, + response: GlossaryListTermHeaders200Response | GlossaryListTermHeadersDefaultResponse, ): response is GlossaryListTermHeadersDefaultResponse; export function isUnexpected( response: DiscoveryQuery200Response | DiscoveryQueryDefaultResponse, @@ -592,9 +526,7 @@ export function isUnexpected( response: DiscoverySuggest200Response | DiscoverySuggestDefaultResponse, ): response is DiscoverySuggestDefaultResponse; export function isUnexpected( - response: - | DiscoveryAutoComplete200Response - | DiscoveryAutoCompleteDefaultResponse, + response: DiscoveryAutoComplete200Response | DiscoveryAutoCompleteDefaultResponse, ): response is DiscoveryAutoCompleteDefaultResponse; export function isUnexpected( response: LineageGet200Response | LineageGetDefaultResponse, @@ -603,9 +535,7 @@ export function isUnexpected( response: LineageGetNextPage200Response | LineageGetNextPageDefaultResponse, ): response is LineageGetNextPageDefaultResponse; export function isUnexpected( - response: - | LineageGetByUniqueAttribute200Response - | LineageGetByUniqueAttributeDefaultResponse, + response: LineageGetByUniqueAttribute200Response | LineageGetByUniqueAttributeDefaultResponse, ): response is LineageGetByUniqueAttributeDefaultResponse; export function isUnexpected( response: RelationshipCreate200Response | RelationshipCreateDefaultResponse, @@ -640,44 +570,28 @@ export function isUnexpected( | TypeGetClassificationDefByNameDefaultResponse, ): response is TypeGetClassificationDefByNameDefaultResponse; export function isUnexpected( - response: - | TypeGetEntityDefByGuid200Response - | TypeGetEntityDefByGuidDefaultResponse, + response: TypeGetEntityDefByGuid200Response | TypeGetEntityDefByGuidDefaultResponse, ): response is TypeGetEntityDefByGuidDefaultResponse; export function isUnexpected( - response: - | TypeGetEntityDefByName200Response - | TypeGetEntityDefByNameDefaultResponse, + response: TypeGetEntityDefByName200Response | TypeGetEntityDefByNameDefaultResponse, ): response is TypeGetEntityDefByNameDefaultResponse; export function isUnexpected( - response: - | TypeGetEnumDefByGuid200Response - | TypeGetEnumDefByGuidDefaultResponse, + response: TypeGetEnumDefByGuid200Response | TypeGetEnumDefByGuidDefaultResponse, ): response is TypeGetEnumDefByGuidDefaultResponse; export function isUnexpected( - response: - | TypeGetEnumDefByName200Response - | TypeGetEnumDefByNameDefaultResponse, + response: TypeGetEnumDefByName200Response | TypeGetEnumDefByNameDefaultResponse, ): response is TypeGetEnumDefByNameDefaultResponse; export function isUnexpected( - response: - | TypeGetRelationshipDefByGuid200Response - | TypeGetRelationshipDefByGuidDefaultResponse, + response: TypeGetRelationshipDefByGuid200Response | TypeGetRelationshipDefByGuidDefaultResponse, ): response is TypeGetRelationshipDefByGuidDefaultResponse; export function isUnexpected( - response: - | TypeGetRelationshipDefByName200Response - | TypeGetRelationshipDefByNameDefaultResponse, + response: TypeGetRelationshipDefByName200Response | TypeGetRelationshipDefByNameDefaultResponse, ): response is TypeGetRelationshipDefByNameDefaultResponse; export function isUnexpected( - response: - | TypeGetStructDefByGuid200Response - | TypeGetStructDefByGuidDefaultResponse, + response: TypeGetStructDefByGuid200Response | TypeGetStructDefByGuidDefaultResponse, ): response is TypeGetStructDefByGuidDefaultResponse; export function isUnexpected( - response: - | TypeGetStructDefByName200Response - | TypeGetStructDefByNameDefaultResponse, + response: TypeGetStructDefByName200Response | TypeGetStructDefByNameDefaultResponse, ): response is TypeGetStructDefByNameDefaultResponse; export function isUnexpected( response: TypeGetByGuid200Response | TypeGetByGuidDefaultResponse, @@ -704,14 +618,10 @@ export function isUnexpected( response: TypeListHeaders200Response | TypeListHeadersDefaultResponse, ): response is TypeListHeadersDefaultResponse; export function isUnexpected( - response: - | TypeGetTermTemplateDefByGuid200Response - | TypeGetTermTemplateDefByGuidDefaultResponse, + response: TypeGetTermTemplateDefByGuid200Response | TypeGetTermTemplateDefByGuidDefaultResponse, ): response is TypeGetTermTemplateDefByGuidDefaultResponse; export function isUnexpected( - response: - | TypeGetTermTemplateDefByName200Response - | TypeGetTermTemplateDefByNameDefaultResponse, + response: TypeGetTermTemplateDefByName200Response | TypeGetTermTemplateDefByNameDefaultResponse, ): response is TypeGetTermTemplateDefByNameDefaultResponse; export function isUnexpected( response: @@ -1036,24 +946,17 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // 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 - ) { + 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] || ""); + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( + pathParts[j] || "", + ); if (!isMatched) { found = false; diff --git a/sdk/purview/purview-datamap-rest/src/models.ts b/sdk/purview/purview-datamap-rest/src/models.ts index 05b5f5f0545a..11b60bbde0ec 100644 --- a/sdk/purview/purview-datamap-rest/src/models.ts +++ b/sdk/purview/purview-datamap-rest/src/models.ts @@ -186,12 +186,7 @@ export interface AtlasEntityHeaders { export interface BusinessMetadataOptionsFilePartDescriptor { name: "file"; - body: - | string - | Uint8Array - | ReadableStream - | NodeJS.ReadableStream - | File; + body: string | Uint8Array | ReadableStream | NodeJS.ReadableStream | File; filename?: string; contentType?: string; } @@ -1275,16 +1270,9 @@ export type AtlasTermAssignmentStatus = | "OBSOLETE" | "OTHER"; /** Business metadata to send to the service */ -export type BusinessMetadataOptions = - | FormData - | Array; +export type BusinessMetadataOptions = FormData | Array; /** Status for atlas term relationship */ -export type AtlasTermRelationshipStatus = - | "DRAFT" - | "ACTIVE" - | "DEPRECATED" - | "OBSOLETE" - | "OTHER"; +export type AtlasTermRelationshipStatus = "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; /** Status for term */ export type TermStatus = "Draft" | "Approved" | "Alert" | "Expired"; /** Status for atlas relationship */ @@ -1318,7 +1306,4 @@ export type RoundingMode = /** Cardinality */ export type CardinalityValue = "SINGLE" | "LIST" | "SET"; /** Relationship Category */ -export type RelationshipCategory = - | "ASSOCIATION" - | "AGGREGATION" - | "COMPOSITION"; +export type RelationshipCategory = "ASSOCIATION" | "AGGREGATION" | "COMPOSITION"; diff --git a/sdk/purview/purview-datamap-rest/src/outputModels.ts b/sdk/purview/purview-datamap-rest/src/outputModels.ts index dc27e84477d8..45c76ed48a7d 100644 --- a/sdk/purview/purview-datamap-rest/src/outputModels.ts +++ b/sdk/purview/purview-datamap-rest/src/outputModels.ts @@ -1574,7 +1574,4 @@ export type RoundingModeOutput = /** Cardinality */ export type CardinalityValueOutput = "SINGLE" | "LIST" | "SET"; /** Relationship Category */ -export type RelationshipCategoryOutput = - | "ASSOCIATION" - | "AGGREGATION" - | "COMPOSITION"; +export type RelationshipCategoryOutput = "ASSOCIATION" | "AGGREGATION" | "COMPOSITION"; diff --git a/sdk/purview/purview-datamap-rest/src/parameters.ts b/sdk/purview/purview-datamap-rest/src/parameters.ts index 69bb00f9fee0..9593f1f50108 100644 --- a/sdk/purview/purview-datamap-rest/src/parameters.ts +++ b/sdk/purview/purview-datamap-rest/src/parameters.ts @@ -66,8 +66,7 @@ export interface EntityListByGuidsQueryParam { queryParameters: EntityListByGuidsQueryParamProperties; } -export type EntityListByGuidsParameters = EntityListByGuidsQueryParam & - RequestParameters; +export type EntityListByGuidsParameters = EntityListByGuidsQueryParam & RequestParameters; export interface EntityBulkCreateOrUpdateBodyParam { body: AtlasEntitiesWithExtInfo; @@ -92,8 +91,7 @@ export interface EntityBulkCreateOrUpdateQueryParam { queryParameters?: EntityBulkCreateOrUpdateQueryParamProperties; } -export type EntityBulkCreateOrUpdateParameters = - EntityBulkCreateOrUpdateQueryParam & +export type EntityBulkCreateOrUpdateParameters = EntityBulkCreateOrUpdateQueryParam & EntityBulkCreateOrUpdateBodyParam & RequestParameters; @@ -106,15 +104,14 @@ export interface EntityBulkDeleteQueryParam { queryParameters: EntityBulkDeleteQueryParamProperties; } -export type EntityBulkDeleteParameters = EntityBulkDeleteQueryParam & - RequestParameters; +export type EntityBulkDeleteParameters = EntityBulkDeleteQueryParam & RequestParameters; export interface EntityAddClassificationBodyParam { body: ClassificationAssociateOptions; } -export type EntityAddClassificationParameters = - EntityAddClassificationBodyParam & RequestParameters; +export type EntityAddClassificationParameters = EntityAddClassificationBodyParam & + RequestParameters; export interface EntityGetQueryParamProperties { /** Whether to return minimal information for referred entities. */ @@ -145,8 +142,8 @@ export interface EntityPartialUpdateAttributeByGuidQueryParam { export type EntityPartialUpdateAttributeByGuidParameters = EntityPartialUpdateAttributeByGuidQueryParam & - EntityPartialUpdateAttributeByGuidBodyParam & - RequestParameters; + EntityPartialUpdateAttributeByGuidBodyParam & + RequestParameters; export type EntityDeleteParameters = RequestParameters; export type EntityGetClassificationParameters = RequestParameters; export type EntityRemoveClassificationParameters = RequestParameters; @@ -157,16 +154,16 @@ export interface EntityAddClassificationsBodyParam { body: Array; } -export type EntityAddClassificationsParameters = - EntityAddClassificationsBodyParam & RequestParameters; +export type EntityAddClassificationsParameters = EntityAddClassificationsBodyParam & + RequestParameters; export interface EntityUpdateClassificationsBodyParam { /** An array of classifications to be updated. */ body: Array; } -export type EntityUpdateClassificationsParameters = - EntityUpdateClassificationsBodyParam & RequestParameters; +export type EntityUpdateClassificationsParameters = EntityUpdateClassificationsBodyParam & + RequestParameters; export interface EntityGetByUniqueAttributesQueryParamProperties { /** Whether to return minimal information for referred entities. */ @@ -184,8 +181,8 @@ export interface EntityGetByUniqueAttributesQueryParam { queryParameters?: EntityGetByUniqueAttributesQueryParamProperties; } -export type EntityGetByUniqueAttributesParameters = - EntityGetByUniqueAttributesQueryParam & RequestParameters; +export type EntityGetByUniqueAttributesParameters = EntityGetByUniqueAttributesQueryParam & + RequestParameters; export interface EntityPartialUpdateByUniqueAttributesBodyParam { body: AtlasEntityWithExtInfo; @@ -205,8 +202,8 @@ export interface EntityPartialUpdateByUniqueAttributesQueryParam { export type EntityPartialUpdateByUniqueAttributesParameters = EntityPartialUpdateByUniqueAttributesQueryParam & - EntityPartialUpdateByUniqueAttributesBodyParam & - RequestParameters; + EntityPartialUpdateByUniqueAttributesBodyParam & + RequestParameters; export interface EntityDeleteByUniqueAttributeQueryParamProperties { /** @@ -220,8 +217,8 @@ export interface EntityDeleteByUniqueAttributeQueryParam { queryParameters?: EntityDeleteByUniqueAttributeQueryParamProperties; } -export type EntityDeleteByUniqueAttributeParameters = - EntityDeleteByUniqueAttributeQueryParam & RequestParameters; +export type EntityDeleteByUniqueAttributeParameters = EntityDeleteByUniqueAttributeQueryParam & + RequestParameters; export interface EntityRemoveClassificationByUniqueAttributeQueryParamProperties { /** @@ -257,8 +254,8 @@ export interface EntityAddClassificationsByUniqueAttributeQueryParam { export type EntityAddClassificationsByUniqueAttributeParameters = EntityAddClassificationsByUniqueAttributeQueryParam & - EntityAddClassificationsByUniqueAttributeBodyParam & - RequestParameters; + EntityAddClassificationsByUniqueAttributeBodyParam & + RequestParameters; export interface EntityUpdateClassificationsByUniqueAttributeBodyParam { /** An array of classification to be updated. */ @@ -279,15 +276,15 @@ export interface EntityUpdateClassificationsByUniqueAttributeQueryParam { export type EntityUpdateClassificationsByUniqueAttributeParameters = EntityUpdateClassificationsByUniqueAttributeQueryParam & - EntityUpdateClassificationsByUniqueAttributeBodyParam & - RequestParameters; + EntityUpdateClassificationsByUniqueAttributeBodyParam & + RequestParameters; export interface EntityBulkSetClassificationsBodyParam { body: AtlasEntityHeaders; } -export type EntityBulkSetClassificationsParameters = - EntityBulkSetClassificationsBodyParam & RequestParameters; +export type EntityBulkSetClassificationsParameters = EntityBulkSetClassificationsBodyParam & + RequestParameters; export interface EntityListByUniqueAttributesQueryParamProperties { /** Whether to return minimal information for referred entities. */ @@ -306,8 +303,8 @@ export interface EntityListByUniqueAttributesQueryParam { queryParameters?: EntityListByUniqueAttributesQueryParamProperties; } -export type EntityListByUniqueAttributesParameters = - EntityListByUniqueAttributesQueryParam & RequestParameters; +export type EntityListByUniqueAttributesParameters = EntityListByUniqueAttributesQueryParam & + RequestParameters; export type EntityGetHeaderParameters = RequestParameters; export interface EntityRemoveBusinessMetadataBodyParam { @@ -315,8 +312,8 @@ export interface EntityRemoveBusinessMetadataBodyParam { body: Record>; } -export type EntityRemoveBusinessMetadataParameters = - EntityRemoveBusinessMetadataBodyParam & RequestParameters; +export type EntityRemoveBusinessMetadataParameters = EntityRemoveBusinessMetadataBodyParam & + RequestParameters; export interface EntityAddOrUpdateBusinessMetadataBodyParam { /** BusinessMetadata payload */ @@ -337,8 +334,8 @@ export interface EntityAddOrUpdateBusinessMetadataQueryParam { export type EntityAddOrUpdateBusinessMetadataParameters = EntityAddOrUpdateBusinessMetadataQueryParam & - EntityAddOrUpdateBusinessMetadataBodyParam & - RequestParameters; + EntityAddOrUpdateBusinessMetadataBodyParam & + RequestParameters; export interface EntityRemoveBusinessMetadataAttributesBodyParam { /** Business metadata attribute payload */ @@ -355,8 +352,7 @@ export interface EntityAddOrUpdateBusinessMetadataAttributesBodyParam { export type EntityAddOrUpdateBusinessMetadataAttributesParameters = EntityAddOrUpdateBusinessMetadataAttributesBodyParam & RequestParameters; -export type EntityGetSampleBusinessMetadataTemplateParameters = - RequestParameters; +export type EntityGetSampleBusinessMetadataTemplateParameters = RequestParameters; export interface EntityImportBusinessMetadataBodyParam { body: BusinessMetadataOptions; @@ -367,8 +363,7 @@ export interface EntityImportBusinessMetadataMediaTypesParam { contentType: "multipart/form-data"; } -export type EntityImportBusinessMetadataParameters = - EntityImportBusinessMetadataMediaTypesParam & +export type EntityImportBusinessMetadataParameters = EntityImportBusinessMetadataMediaTypesParam & EntityImportBusinessMetadataBodyParam & RequestParameters; @@ -377,24 +372,21 @@ export interface EntityRemoveLabelsBodyParam { body?: string[]; } -export type EntityRemoveLabelsParameters = EntityRemoveLabelsBodyParam & - RequestParameters; +export type EntityRemoveLabelsParameters = EntityRemoveLabelsBodyParam & RequestParameters; export interface EntitySetLabelsBodyParam { /** set of labels to be set to the entity */ body?: string[]; } -export type EntitySetLabelsParameters = EntitySetLabelsBodyParam & - RequestParameters; +export type EntitySetLabelsParameters = EntitySetLabelsBodyParam & RequestParameters; export interface EntityAddLabelBodyParam { /** set of labels to be added */ body?: string[]; } -export type EntityAddLabelParameters = EntityAddLabelBodyParam & - RequestParameters; +export type EntityAddLabelParameters = EntityAddLabelBodyParam & RequestParameters; export interface EntityRemoveLabelsByUniqueAttributeBodyParam { /** set of labels to be deleted */ @@ -415,8 +407,8 @@ export interface EntityRemoveLabelsByUniqueAttributeQueryParam { export type EntityRemoveLabelsByUniqueAttributeParameters = EntityRemoveLabelsByUniqueAttributeQueryParam & - EntityRemoveLabelsByUniqueAttributeBodyParam & - RequestParameters; + EntityRemoveLabelsByUniqueAttributeBodyParam & + RequestParameters; export interface EntitySetLabelsByUniqueAttributeBodyParam { /** set of labels to be set */ @@ -437,8 +429,8 @@ export interface EntitySetLabelsByUniqueAttributeQueryParam { export type EntitySetLabelsByUniqueAttributeParameters = EntitySetLabelsByUniqueAttributeQueryParam & - EntitySetLabelsByUniqueAttributeBodyParam & - RequestParameters; + EntitySetLabelsByUniqueAttributeBodyParam & + RequestParameters; export interface EntityAddLabelsByUniqueAttributeBodyParam { /** set of labels to be added */ @@ -459,8 +451,8 @@ export interface EntityAddLabelsByUniqueAttributeQueryParam { export type EntityAddLabelsByUniqueAttributeParameters = EntityAddLabelsByUniqueAttributeQueryParam & - EntityAddLabelsByUniqueAttributeBodyParam & - RequestParameters; + EntityAddLabelsByUniqueAttributeBodyParam & + RequestParameters; export interface EntityMoveEntitiesToCollectionBodyParam { body: MoveEntitiesOptions; @@ -477,8 +469,7 @@ export interface EntityMoveEntitiesToCollectionQueryParam { queryParameters: EntityMoveEntitiesToCollectionQueryParamProperties; } -export type EntityMoveEntitiesToCollectionParameters = - EntityMoveEntitiesToCollectionQueryParam & +export type EntityMoveEntitiesToCollectionParameters = EntityMoveEntitiesToCollectionQueryParam & EntityMoveEntitiesToCollectionBodyParam & RequestParameters; @@ -505,31 +496,28 @@ export interface GlossaryCreateBodyParam { body: AtlasGlossary; } -export type GlossaryCreateParameters = GlossaryCreateBodyParam & - RequestParameters; +export type GlossaryCreateParameters = GlossaryCreateBodyParam & RequestParameters; export interface GlossaryCreateCategoriesBodyParam { /** An array of glossary category definitions to be created. */ body: Array; } -export type GlossaryCreateCategoriesParameters = - GlossaryCreateCategoriesBodyParam & RequestParameters; +export type GlossaryCreateCategoriesParameters = GlossaryCreateCategoriesBodyParam & + RequestParameters; export interface GlossaryCreateCategoryBodyParam { body: AtlasGlossaryCategory; } -export type GlossaryCreateCategoryParameters = GlossaryCreateCategoryBodyParam & - RequestParameters; +export type GlossaryCreateCategoryParameters = GlossaryCreateCategoryBodyParam & RequestParameters; export type GlossaryGetCategoryParameters = RequestParameters; export interface GlossaryUpdateCategoryBodyParam { body: AtlasGlossaryCategory; } -export type GlossaryUpdateCategoryParameters = GlossaryUpdateCategoryBodyParam & - RequestParameters; +export type GlossaryUpdateCategoryParameters = GlossaryUpdateCategoryBodyParam & RequestParameters; export type GlossaryDeleteCategoryParameters = RequestParameters; export interface GlossaryPartialUpdateCategoryBodyParam { @@ -540,8 +528,8 @@ export interface GlossaryPartialUpdateCategoryBodyParam { body: Record; } -export type GlossaryPartialUpdateCategoryParameters = - GlossaryPartialUpdateCategoryBodyParam & RequestParameters; +export type GlossaryPartialUpdateCategoryParameters = GlossaryPartialUpdateCategoryBodyParam & + RequestParameters; export interface GlossaryListRelatedCategoriesQueryParamProperties { /** The page size - by default there is no paging. */ @@ -556,8 +544,8 @@ export interface GlossaryListRelatedCategoriesQueryParam { queryParameters?: GlossaryListRelatedCategoriesQueryParamProperties; } -export type GlossaryListRelatedCategoriesParameters = - GlossaryListRelatedCategoriesQueryParam & RequestParameters; +export type GlossaryListRelatedCategoriesParameters = GlossaryListRelatedCategoriesQueryParam & + RequestParameters; export interface GlossaryListCategoryTermsQueryParamProperties { /** The page size - by default there is no paging. */ @@ -572,8 +560,8 @@ export interface GlossaryListCategoryTermsQueryParam { queryParameters?: GlossaryListCategoryTermsQueryParamProperties; } -export type GlossaryListCategoryTermsParameters = - GlossaryListCategoryTermsQueryParam & RequestParameters; +export type GlossaryListCategoryTermsParameters = GlossaryListCategoryTermsQueryParam & + RequestParameters; export interface GlossaryCreateTermBodyParam { body: AtlasGlossaryTerm; @@ -601,8 +589,7 @@ export interface GlossaryGetTermQueryParam { queryParameters?: GlossaryGetTermQueryParamProperties; } -export type GlossaryGetTermParameters = GlossaryGetTermQueryParam & - RequestParameters; +export type GlossaryGetTermParameters = GlossaryGetTermQueryParam & RequestParameters; export interface GlossaryUpdateTermBodyParam { body: AtlasGlossaryTerm; @@ -643,8 +630,7 @@ export interface GlossaryPartialUpdateTermQueryParam { queryParameters?: GlossaryPartialUpdateTermQueryParamProperties; } -export type GlossaryPartialUpdateTermParameters = - GlossaryPartialUpdateTermQueryParam & +export type GlossaryPartialUpdateTermParameters = GlossaryPartialUpdateTermQueryParam & GlossaryPartialUpdateTermBodyParam & RequestParameters; @@ -689,8 +675,8 @@ export interface GlossaryAssignTermToEntitiesBodyParam { body: Array; } -export type GlossaryAssignTermToEntitiesParameters = - GlossaryAssignTermToEntitiesBodyParam & RequestParameters; +export type GlossaryAssignTermToEntitiesParameters = GlossaryAssignTermToEntitiesBodyParam & + RequestParameters; export interface GlossaryDeleteTermAssignmentFromEntitiesBodyParam { /** An array of related object IDs from which the term has to be dissociated. */ @@ -715,8 +701,8 @@ export interface GlossaryListRelatedTermsQueryParam { queryParameters?: GlossaryListRelatedTermsQueryParamProperties; } -export type GlossaryListRelatedTermsParameters = - GlossaryListRelatedTermsQueryParam & RequestParameters; +export type GlossaryListRelatedTermsParameters = GlossaryListRelatedTermsQueryParam & + RequestParameters; export type GlossaryGetParameters = RequestParameters; export interface GlossaryUpdateBodyParam { @@ -752,8 +738,7 @@ export interface GlossaryListCategoriesQueryParam { queryParameters?: GlossaryListCategoriesQueryParamProperties; } -export type GlossaryListCategoriesParameters = - GlossaryListCategoriesQueryParam & RequestParameters; +export type GlossaryListCategoriesParameters = GlossaryListCategoriesQueryParam & RequestParameters; export interface GlossaryListCategoriesHeadersQueryParamProperties { /** The page size - by default there is no paging. */ @@ -768,8 +753,8 @@ export interface GlossaryListCategoriesHeadersQueryParam { queryParameters?: GlossaryListCategoriesHeadersQueryParamProperties; } -export type GlossaryListCategoriesHeadersParameters = - GlossaryListCategoriesHeadersQueryParam & RequestParameters; +export type GlossaryListCategoriesHeadersParameters = GlossaryListCategoriesHeadersQueryParam & + RequestParameters; export interface GlossaryGetDetailedQueryParamProperties { /** The API version to use for this operation. */ @@ -780,8 +765,7 @@ export interface GlossaryGetDetailedQueryParam { queryParameters?: GlossaryGetDetailedQueryParamProperties; } -export type GlossaryGetDetailedParameters = GlossaryGetDetailedQueryParam & - RequestParameters; +export type GlossaryGetDetailedParameters = GlossaryGetDetailedQueryParam & RequestParameters; export interface GlossaryPartialUpdateBodyParam { /** @@ -821,8 +805,7 @@ export interface GlossaryListTermsQueryParam { queryParameters?: GlossaryListTermsQueryParamProperties; } -export type GlossaryListTermsParameters = GlossaryListTermsQueryParam & - RequestParameters; +export type GlossaryListTermsParameters = GlossaryListTermsQueryParam & RequestParameters; export interface GlossaryListTermHeadersQueryParamProperties { /** The page size - by default there is no paging. */ @@ -837,8 +820,8 @@ export interface GlossaryListTermHeadersQueryParam { queryParameters?: GlossaryListTermHeadersQueryParamProperties; } -export type GlossaryListTermHeadersParameters = - GlossaryListTermHeadersQueryParam & RequestParameters; +export type GlossaryListTermHeadersParameters = GlossaryListTermHeadersQueryParam & + RequestParameters; export interface DiscoveryQueryBodyParam { body: QueryOptions; @@ -919,8 +902,7 @@ export interface LineageGetNextPageQueryParam { queryParameters: LineageGetNextPageQueryParamProperties; } -export type LineageGetNextPageParameters = LineageGetNextPageQueryParam & - RequestParameters; +export type LineageGetNextPageParameters = LineageGetNextPageQueryParam & RequestParameters; export interface LineageGetByUniqueAttributeQueryParamProperties { /** The number of hops for lineage. */ @@ -938,22 +920,20 @@ export interface LineageGetByUniqueAttributeQueryParam { queryParameters: LineageGetByUniqueAttributeQueryParamProperties; } -export type LineageGetByUniqueAttributeParameters = - LineageGetByUniqueAttributeQueryParam & RequestParameters; +export type LineageGetByUniqueAttributeParameters = LineageGetByUniqueAttributeQueryParam & + RequestParameters; export interface RelationshipCreateBodyParam { body: AtlasRelationship; } -export type RelationshipCreateParameters = RelationshipCreateBodyParam & - RequestParameters; +export type RelationshipCreateParameters = RelationshipCreateBodyParam & RequestParameters; export interface RelationshipUpdateBodyParam { body: AtlasRelationship; } -export type RelationshipUpdateParameters = RelationshipUpdateBodyParam & - RequestParameters; +export type RelationshipUpdateParameters = RelationshipUpdateBodyParam & RequestParameters; export interface RelationshipGetQueryParamProperties { /** Limits whether includes extended information. */ @@ -964,8 +944,7 @@ export interface RelationshipGetQueryParam { queryParameters?: RelationshipGetQueryParamProperties; } -export type RelationshipGetParameters = RelationshipGetQueryParam & - RequestParameters; +export type RelationshipGetParameters = RelationshipGetQueryParam & RequestParameters; export type RelationshipDeleteParameters = RequestParameters; export type TypeGetBusinessMetadataDefByGuidParameters = RequestParameters; export type TypeGetBusinessMetadataDefByNameParameters = RequestParameters; @@ -1006,22 +985,19 @@ export interface TypeBulkCreateBodyParam { body: AtlasTypesDef; } -export type TypeBulkCreateParameters = TypeBulkCreateBodyParam & - RequestParameters; +export type TypeBulkCreateParameters = TypeBulkCreateBodyParam & RequestParameters; export interface TypeBulkUpdateBodyParam { body: AtlasTypesDef; } -export type TypeBulkUpdateParameters = TypeBulkUpdateBodyParam & - RequestParameters; +export type TypeBulkUpdateParameters = TypeBulkUpdateBodyParam & RequestParameters; export interface TypeBulkDeleteBodyParam { body: AtlasTypesDef; } -export type TypeBulkDeleteParameters = TypeBulkDeleteBodyParam & - RequestParameters; +export type TypeBulkDeleteParameters = TypeBulkDeleteBodyParam & RequestParameters; export interface TypeListHeadersQueryParamProperties { /** The API version to use for this operation. */ @@ -1040,8 +1016,7 @@ export interface TypeListHeadersQueryParam { queryParameters?: TypeListHeadersQueryParamProperties; } -export type TypeListHeadersParameters = TypeListHeadersQueryParam & - RequestParameters; +export type TypeListHeadersParameters = TypeListHeadersQueryParam & RequestParameters; export interface TypeGetTermTemplateDefByGuidQueryParamProperties { /** The API version to use for this operation. */ @@ -1052,8 +1027,8 @@ export interface TypeGetTermTemplateDefByGuidQueryParam { queryParameters: TypeGetTermTemplateDefByGuidQueryParamProperties; } -export type TypeGetTermTemplateDefByGuidParameters = - TypeGetTermTemplateDefByGuidQueryParam & RequestParameters; +export type TypeGetTermTemplateDefByGuidParameters = TypeGetTermTemplateDefByGuidQueryParam & + RequestParameters; export interface TypeGetTermTemplateDefByNameQueryParamProperties { /** The API version to use for this operation. */ @@ -1064,5 +1039,5 @@ export interface TypeGetTermTemplateDefByNameQueryParam { queryParameters: TypeGetTermTemplateDefByNameQueryParamProperties; } -export type TypeGetTermTemplateDefByNameParameters = - TypeGetTermTemplateDefByNameQueryParam & RequestParameters; +export type TypeGetTermTemplateDefByNameParameters = TypeGetTermTemplateDefByNameQueryParam & + RequestParameters; diff --git a/sdk/purview/purview-datamap-rest/src/purviewDataMapClient.ts b/sdk/purview/purview-datamap-rest/src/purviewDataMapClient.ts index a878e521bac8..206d08627ae7 100644 --- a/sdk/purview/purview-datamap-rest/src/purviewDataMapClient.ts +++ b/sdk/purview/purview-datamap-rest/src/purviewDataMapClient.ts @@ -21,8 +21,7 @@ export default function createClient( credentials: TokenCredential, options: PurviewDataMapClientOptions = {}, ): PurviewDataMapClient { - const endpointUrl = - options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`; + const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`; const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix @@ -37,16 +36,10 @@ export default function createClient( logger: options.loggingOptions?.logger ?? logger.info, }, credentials: { - scopes: options.credentials?.scopes ?? [ - "https://purview.azure.net/.default", - ], + scopes: options.credentials?.scopes ?? ["https://purview.azure.net/.default"], }, }; - const client = getClient( - endpointUrl, - credentials, - options, - ) as PurviewDataMapClient; + const client = getClient(endpointUrl, credentials, options) as PurviewDataMapClient; client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); if (options.apiVersion) { diff --git a/sdk/purview/purview-datamap-rest/src/responses.ts b/sdk/purview/purview-datamap-rest/src/responses.ts index 8cb7aaa55433..cf03af40b2cc 100644 --- a/sdk/purview/purview-datamap-rest/src/responses.ts +++ b/sdk/purview/purview-datamap-rest/src/responses.ts @@ -103,14 +103,12 @@ export interface EntityGetDefaultResponse extends HttpResponse { } /** The request has succeeded. */ -export interface EntityPartialUpdateAttributeByGuid200Response - extends HttpResponse { +export interface EntityPartialUpdateAttributeByGuid200Response extends HttpResponse { status: "200"; body: EntityMutationResultOutput; } -export interface EntityPartialUpdateAttributeByGuidDefaultResponse - extends HttpResponse { +export interface EntityPartialUpdateAttributeByGuidDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -142,8 +140,7 @@ export interface EntityRemoveClassification204Response extends HttpResponse { status: "204"; } -export interface EntityRemoveClassificationDefaultResponse - extends HttpResponse { +export interface EntityRemoveClassificationDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -174,8 +171,7 @@ export interface EntityUpdateClassifications204Response extends HttpResponse { status: "204"; } -export interface EntityUpdateClassificationsDefaultResponse - extends HttpResponse { +export interface EntityUpdateClassificationsDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -186,21 +182,18 @@ export interface EntityGetByUniqueAttributes200Response extends HttpResponse { body: AtlasEntityWithExtInfoOutput; } -export interface EntityGetByUniqueAttributesDefaultResponse - extends HttpResponse { +export interface EntityGetByUniqueAttributesDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface EntityPartialUpdateByUniqueAttributes200Response - extends HttpResponse { +export interface EntityPartialUpdateByUniqueAttributes200Response extends HttpResponse { status: "200"; body: EntityMutationResultOutput; } -export interface EntityPartialUpdateByUniqueAttributesDefaultResponse - extends HttpResponse { +export interface EntityPartialUpdateByUniqueAttributesDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -211,44 +204,37 @@ export interface EntityDeleteByUniqueAttribute200Response extends HttpResponse { body: EntityMutationResultOutput; } -export interface EntityDeleteByUniqueAttributeDefaultResponse - extends HttpResponse { +export interface EntityDeleteByUniqueAttributeDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityRemoveClassificationByUniqueAttribute204Response - extends HttpResponse { +export interface EntityRemoveClassificationByUniqueAttribute204Response extends HttpResponse { status: "204"; } -export interface EntityRemoveClassificationByUniqueAttributeDefaultResponse - extends HttpResponse { +export interface EntityRemoveClassificationByUniqueAttributeDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityAddClassificationsByUniqueAttribute204Response - extends HttpResponse { +export interface EntityAddClassificationsByUniqueAttribute204Response extends HttpResponse { status: "204"; } -export interface EntityAddClassificationsByUniqueAttributeDefaultResponse - extends HttpResponse { +export interface EntityAddClassificationsByUniqueAttributeDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityUpdateClassificationsByUniqueAttribute204Response - extends HttpResponse { +export interface EntityUpdateClassificationsByUniqueAttribute204Response extends HttpResponse { status: "204"; } -export interface EntityUpdateClassificationsByUniqueAttributeDefaultResponse - extends HttpResponse { +export interface EntityUpdateClassificationsByUniqueAttributeDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -259,8 +245,7 @@ export interface EntityBulkSetClassifications200Response extends HttpResponse { body: string[]; } -export interface EntityBulkSetClassificationsDefaultResponse - extends HttpResponse { +export interface EntityBulkSetClassificationsDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -271,8 +256,7 @@ export interface EntityListByUniqueAttributes200Response extends HttpResponse { body: AtlasEntitiesWithExtInfoOutput; } -export interface EntityListByUniqueAttributesDefaultResponse - extends HttpResponse { +export interface EntityListByUniqueAttributesDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -293,44 +277,37 @@ export interface EntityRemoveBusinessMetadata204Response extends HttpResponse { status: "204"; } -export interface EntityRemoveBusinessMetadataDefaultResponse - extends HttpResponse { +export interface EntityRemoveBusinessMetadataDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityAddOrUpdateBusinessMetadata204Response - extends HttpResponse { +export interface EntityAddOrUpdateBusinessMetadata204Response extends HttpResponse { status: "204"; } -export interface EntityAddOrUpdateBusinessMetadataDefaultResponse - extends HttpResponse { +export interface EntityAddOrUpdateBusinessMetadataDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityRemoveBusinessMetadataAttributes204Response - extends HttpResponse { +export interface EntityRemoveBusinessMetadataAttributes204Response extends HttpResponse { status: "204"; } -export interface EntityRemoveBusinessMetadataAttributesDefaultResponse - extends HttpResponse { +export interface EntityRemoveBusinessMetadataAttributesDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityAddOrUpdateBusinessMetadataAttributes204Response - extends HttpResponse { +export interface EntityAddOrUpdateBusinessMetadataAttributes204Response extends HttpResponse { status: "204"; } -export interface EntityAddOrUpdateBusinessMetadataAttributesDefaultResponse - extends HttpResponse { +export interface EntityAddOrUpdateBusinessMetadataAttributesDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -340,16 +317,14 @@ export interface EntityGetSampleBusinessMetadataTemplate200Headers { } /** The request has succeeded. */ -export interface EntityGetSampleBusinessMetadataTemplate200Response - extends HttpResponse { +export interface EntityGetSampleBusinessMetadataTemplate200Response extends HttpResponse { status: "200"; /** Value may contain any sequence of octets */ body: Uint8Array; headers: RawHttpHeaders & EntityGetSampleBusinessMetadataTemplate200Headers; } -export interface EntityGetSampleBusinessMetadataTemplateDefaultResponse - extends HttpResponse { +export interface EntityGetSampleBusinessMetadataTemplateDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -360,8 +335,7 @@ export interface EntityImportBusinessMetadata200Response extends HttpResponse { body: BulkImportResultOutput; } -export interface EntityImportBusinessMetadataDefaultResponse - extends HttpResponse { +export interface EntityImportBusinessMetadataDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -397,50 +371,42 @@ export interface EntityAddLabelDefaultResponse extends HttpResponse { } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityRemoveLabelsByUniqueAttribute204Response - extends HttpResponse { +export interface EntityRemoveLabelsByUniqueAttribute204Response extends HttpResponse { status: "204"; } -export interface EntityRemoveLabelsByUniqueAttributeDefaultResponse - extends HttpResponse { +export interface EntityRemoveLabelsByUniqueAttributeDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntitySetLabelsByUniqueAttribute204Response - extends HttpResponse { +export interface EntitySetLabelsByUniqueAttribute204Response extends HttpResponse { status: "204"; } -export interface EntitySetLabelsByUniqueAttributeDefaultResponse - extends HttpResponse { +export interface EntitySetLabelsByUniqueAttributeDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EntityAddLabelsByUniqueAttribute204Response - extends HttpResponse { +export interface EntityAddLabelsByUniqueAttribute204Response extends HttpResponse { status: "204"; } -export interface EntityAddLabelsByUniqueAttributeDefaultResponse - extends HttpResponse { +export interface EntityAddLabelsByUniqueAttributeDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface EntityMoveEntitiesToCollection200Response - extends HttpResponse { +export interface EntityMoveEntitiesToCollection200Response extends HttpResponse { status: "200"; body: EntityMutationResultOutput; } -export interface EntityMoveEntitiesToCollectionDefaultResponse - extends HttpResponse { +export interface EntityMoveEntitiesToCollectionDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -527,8 +493,7 @@ export interface GlossaryPartialUpdateCategory200Response extends HttpResponse { body: AtlasGlossaryCategoryOutput; } -export interface GlossaryPartialUpdateCategoryDefaultResponse - extends HttpResponse { +export interface GlossaryPartialUpdateCategoryDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -539,8 +504,7 @@ export interface GlossaryListRelatedCategories200Response extends HttpResponse { body: Record>; } -export interface GlossaryListRelatedCategoriesDefaultResponse - extends HttpResponse { +export interface GlossaryListRelatedCategoriesDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -622,14 +586,12 @@ export interface GlossaryCreateTermsDefaultResponse extends HttpResponse { } /** The request has succeeded. */ -export interface GlossaryListEntitiesAssignedWithTerm200Response - extends HttpResponse { +export interface GlossaryListEntitiesAssignedWithTerm200Response extends HttpResponse { status: "200"; body: Array; } -export interface GlossaryListEntitiesAssignedWithTermDefaultResponse - extends HttpResponse { +export interface GlossaryListEntitiesAssignedWithTermDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -639,20 +601,17 @@ export interface GlossaryAssignTermToEntities204Response extends HttpResponse { status: "204"; } -export interface GlossaryAssignTermToEntitiesDefaultResponse - extends HttpResponse { +export interface GlossaryAssignTermToEntitiesDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** There is no content to send for this request, but the headers may be useful. */ -export interface GlossaryDeleteTermAssignmentFromEntities204Response - extends HttpResponse { +export interface GlossaryDeleteTermAssignmentFromEntities204Response extends HttpResponse { status: "204"; } -export interface GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse - extends HttpResponse { +export interface GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -717,8 +676,7 @@ export interface GlossaryListCategoriesHeaders200Response extends HttpResponse { body: Array; } -export interface GlossaryListCategoriesHeadersDefaultResponse - extends HttpResponse { +export interface GlossaryListCategoriesHeadersDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -828,8 +786,7 @@ export interface LineageGetByUniqueAttribute200Response extends HttpResponse { body: AtlasLineageInfoOutput; } -export interface LineageGetByUniqueAttributeDefaultResponse - extends HttpResponse { +export interface LineageGetByUniqueAttributeDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -878,53 +835,45 @@ export interface RelationshipDeleteDefaultResponse extends HttpResponse { } /** The request has succeeded. */ -export interface TypeGetBusinessMetadataDefByGuid200Response - extends HttpResponse { +export interface TypeGetBusinessMetadataDefByGuid200Response extends HttpResponse { status: "200"; body: AtlasBusinessMetadataDefOutput; } -export interface TypeGetBusinessMetadataDefByGuidDefaultResponse - extends HttpResponse { +export interface TypeGetBusinessMetadataDefByGuidDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface TypeGetBusinessMetadataDefByName200Response - extends HttpResponse { +export interface TypeGetBusinessMetadataDefByName200Response extends HttpResponse { status: "200"; body: AtlasBusinessMetadataDefOutput; } -export interface TypeGetBusinessMetadataDefByNameDefaultResponse - extends HttpResponse { +export interface TypeGetBusinessMetadataDefByNameDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface TypeGetClassificationDefByGuid200Response - extends HttpResponse { +export interface TypeGetClassificationDefByGuid200Response extends HttpResponse { status: "200"; body: AtlasClassificationDefOutput; } -export interface TypeGetClassificationDefByGuidDefaultResponse - extends HttpResponse { +export interface TypeGetClassificationDefByGuidDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } /** The request has succeeded. */ -export interface TypeGetClassificationDefByName200Response - extends HttpResponse { +export interface TypeGetClassificationDefByName200Response extends HttpResponse { status: "200"; body: AtlasClassificationDefOutput; } -export interface TypeGetClassificationDefByNameDefaultResponse - extends HttpResponse { +export interface TypeGetClassificationDefByNameDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -979,8 +928,7 @@ export interface TypeGetRelationshipDefByGuid200Response extends HttpResponse { body: AtlasRelationshipDefOutput; } -export interface TypeGetRelationshipDefByGuidDefaultResponse - extends HttpResponse { +export interface TypeGetRelationshipDefByGuidDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -991,8 +939,7 @@ export interface TypeGetRelationshipDefByName200Response extends HttpResponse { body: AtlasRelationshipDefOutput; } -export interface TypeGetRelationshipDefByNameDefaultResponse - extends HttpResponse { +export interface TypeGetRelationshipDefByNameDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -1111,8 +1058,7 @@ export interface TypeGetTermTemplateDefByGuid200Response extends HttpResponse { body: TermTemplateDefOutput; } -export interface TypeGetTermTemplateDefByGuidDefaultResponse - extends HttpResponse { +export interface TypeGetTermTemplateDefByGuidDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } @@ -1123,8 +1069,7 @@ export interface TypeGetTermTemplateDefByName200Response extends HttpResponse { body: TermTemplateDefOutput; } -export interface TypeGetTermTemplateDefByNameDefaultResponse - extends HttpResponse { +export interface TypeGetTermTemplateDefByNameDefaultResponse extends HttpResponse { status: string; body: AtlasErrorResponseOutput; } diff --git a/sdk/purview/purview-datamap-rest/src/serializeHelper.ts b/sdk/purview/purview-datamap-rest/src/serializeHelper.ts index a19f11ca222a..593ee9fcc7ba 100644 --- a/sdk/purview/purview-datamap-rest/src/serializeHelper.ts +++ b/sdk/purview/purview-datamap-rest/src/serializeHelper.ts @@ -1,10 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export function buildMultiCollection( - items: string[], - parameterName: string, -): string { +export function buildMultiCollection(items: string[], parameterName: string): string { return items .map((item, index) => { if (index === 0) { diff --git a/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts b/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts index 1d83ceba8152..e796b1449943 100644 --- a/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts +++ b/sdk/purview/purview-datamap-rest/test/public/entityTest.spec.ts @@ -27,11 +27,13 @@ hive_database,hive_db_1,bmWithAllTypes.attr8,"Awesome Attribute 1",name`); const response = await client.path("/atlas/v2/entity/businessmetadata/import").post({ contentType: "multipart/form-data", - body: [{ - name: "file", - body: fileContent, - filename: "template_2.csv" - }], + body: [ + { + name: "file", + body: fileContent, + filename: "template_2.csv", + }, + ], }); assert.strictEqual(isUnexpected(response), false); }); From 1ea0d8c02300eefd8a1120602e7c4706b13754a1 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:14:05 +0800 Subject: [PATCH 6/8] update --- .../src/clientDefinitions.ts | 18 +- .../purview-datamap-rest/src/isUnexpected.ts | 2 +- .../purview-datamap-rest/src/models.ts | 409 ++++++++--------- .../purview-datamap-rest/src/outputModels.ts | 424 ++++++++++-------- .../purview-datamap-rest/src/parameters.ts | 87 +++- .../purview-datamap-rest/src/responses.ts | 6 +- .../purview-datamap-rest/tsp-location.yaml | 5 +- 7 files changed, 511 insertions(+), 440 deletions(-) diff --git a/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts b/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts index 45bf13dd9a99..e5e669b3141c 100644 --- a/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts +++ b/sdk/purview/purview-datamap-rest/src/clientDefinitions.ts @@ -692,12 +692,8 @@ export interface GlossaryList { /** * Get all glossaries. Recommend using limit/offset to get pagination result. * Recommend using 'ignoreTermsAndCategories=true' and fetch terms/categories - * separately using - * - * 'GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms' - * and - * - * 'GET '/datamap/api/atlas/v2/glossary/{glossaryId}/categories'. + * separately using 'GET /datamap/api/atlas/v2/glossary/{glossaryId}/terms' + * and 'GET '/datamap/api/atlas/v2/glossary/{glossaryId}/categories'. */ get( options?: GlossaryListParameters, @@ -1152,11 +1148,7 @@ export interface TypeList { get( options?: TypeListParameters, ): StreamableMethod; - /** - * Create all atlas type definitions in bulk, only new definitions will be - * created. - * Any changes to the existing definitions will be discarded. - */ + /** Create all atlas type definitions in bulk. Please avoid recreating existing types. */ post( options: TypeBulkCreateParameters, ): StreamableMethod; @@ -1332,8 +1324,8 @@ export interface Routes { (path: "/search/autocomplete"): DiscoveryAutoComplete; /** Resource for '/atlas/v2/lineage/\{guid\}' has methods for the following verbs: get */ (path: "/atlas/v2/lineage/{guid}", guid: string): LineageGet; - /** Resource for '/lineage/\{guid\}/next/' has methods for the following verbs: get */ - (path: "/lineage/{guid}/next/", guid: string): LineageGetNextPage; + /** Resource for '/lineage/\{guid\}/next' has methods for the following verbs: get */ + (path: "/lineage/{guid}/next", guid: string): LineageGetNextPage; /** Resource for '/atlas/v2/lineage/uniqueAttribute/type/\{typeName\}' has methods for the following verbs: get */ ( path: "/atlas/v2/lineage/uniqueAttribute/type/{typeName}", diff --git a/sdk/purview/purview-datamap-rest/src/isUnexpected.ts b/sdk/purview/purview-datamap-rest/src/isUnexpected.ts index c0dc57b77e68..28d827fbe3a5 100644 --- a/sdk/purview/purview-datamap-rest/src/isUnexpected.ts +++ b/sdk/purview/purview-datamap-rest/src/isUnexpected.ts @@ -267,7 +267,7 @@ const responseMap: Record = { "POST /search/suggest": ["200"], "POST /search/autocomplete": ["200"], "GET /atlas/v2/lineage/{guid}": ["200"], - "GET /lineage/{guid}/next/": ["200"], + "GET /lineage/{guid}/next": ["200"], "GET /atlas/v2/lineage/uniqueAttribute/type/{typeName}": ["200"], "POST /atlas/v2/relationship": ["200"], "PUT /atlas/v2/relationship": ["200"], diff --git a/sdk/purview/purview-datamap-rest/src/models.ts b/sdk/purview/purview-datamap-rest/src/models.ts index 11b60bbde0ec..c3a8f178a7ed 100644 --- a/sdk/purview/purview-datamap-rest/src/models.ts +++ b/sdk/purview/purview-datamap-rest/src/models.ts @@ -49,6 +49,8 @@ export interface AtlasEntity { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. + * + * Possible values: "ACTIVE", "DELETED" */ status?: EntityStatus; /** The update time of the record. */ @@ -77,6 +79,8 @@ export interface AtlasClassification { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. + * + * Possible values: "ACTIVE", "DELETED" */ entityStatus?: EntityStatus; /** Determines if propagations will be removed on entity deletion. */ @@ -109,7 +113,11 @@ export interface AtlasTermAssignmentHeader { expression?: string; /** The GUID of the relationship. */ relationGuid?: string; - /** The status of terms assignment. */ + /** + * The status of terms assignment. + * + * Possible values: "DISCOVERED", "PROPOSED", "IMPORTED", "VALIDATED", "DEPRECATED", "OBSOLETE", "OTHER" + */ status?: AtlasTermAssignmentStatus; /** The steward of the term. */ steward?: string; @@ -152,6 +160,8 @@ export interface AtlasEntityHeader { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. + * + * Possible values: "ACTIVE", "DELETED" */ status?: EntityStatus; } @@ -197,38 +207,6 @@ export interface MoveEntitiesOptions { entityGuids?: string[]; } -/** The header of the related category. */ -export interface AtlasRelatedCategoryHeader { - /** The GUID of the category. */ - categoryGuid?: string; - /** The description of the category header. */ - description?: string; - /** The display text. */ - displayText?: string; - /** The GUID of the parent category. */ - parentCategoryGuid?: string; - /** The GUID of the relationship. */ - relationGuid?: string; -} - -/** The header of the related term. */ -export interface AtlasRelatedTermHeader { - /** The description of the related term. */ - description?: string; - /** The display text. */ - displayText?: string; - /** The expression of the term. */ - expression?: string; - /** The GUID of the relationship. */ - relationGuid?: string; - /** The status of term relationship. */ - status?: AtlasTermRelationshipStatus; - /** The steward of the term. */ - steward?: string; - /** The GUID of the term. */ - termGuid?: string; -} - /** The glossary object. */ export interface AtlasGlossary { /** The GUID of the object. */ @@ -263,6 +241,42 @@ export interface AtlasGlossary { usage?: string; } +/** The header of the related category. */ +export interface AtlasRelatedCategoryHeader { + /** The GUID of the category. */ + categoryGuid?: string; + /** The description of the category header. */ + description?: string; + /** The display text. */ + displayText?: string; + /** The GUID of the parent category. */ + parentCategoryGuid?: string; + /** The GUID of the relationship. */ + relationGuid?: string; +} + +/** The header of the related term. */ +export interface AtlasRelatedTermHeader { + /** The description of the related term. */ + description?: string; + /** The display text. */ + displayText?: string; + /** The expression of the term. */ + expression?: string; + /** The GUID of the relationship. */ + relationGuid?: string; + /** + * The status of term relationship. + * + * Possible values: "DRAFT", "ACTIVE", "DEPRECATED", "OBSOLETE", "OTHER" + */ + status?: AtlasTermRelationshipStatus; + /** The steward of the term. */ + steward?: string; + /** The GUID of the term. */ + termGuid?: string; +} + /** The glossary category. */ export interface AtlasGlossaryCategory { /** The GUID of the object. */ @@ -307,40 +321,6 @@ export interface AtlasGlossaryHeader { relationGuid?: string; } -/** The glossary category. */ -export interface AtlasGlossaryCategory { - /** The GUID of the object. */ - guid?: string; - /** An array of classifications. */ - classifications?: Array; - /** The long version description. */ - longDescription?: string; - /** The name of the glossary object. */ - name?: string; - /** The qualified name of the glossary object. */ - qualifiedName?: string; - /** The short version of description. */ - shortDescription?: string; - /** ETag for concurrency control. */ - lastModifiedTS?: string; - /** The created time of the record. */ - createTime?: number; - /** The user who created the record. */ - createdBy?: string; - /** The update time of the record. */ - updateTime?: number; - /** The user who updated the record. */ - updatedBy?: string; - /** The glossary header with basic information. */ - anchor?: AtlasGlossaryHeader; - /** An array of children categories. */ - childrenCategories?: Array; - /** The header of the related category. */ - parentCategory?: AtlasRelatedCategoryHeader; - /** An array of related term headers. */ - terms?: Array; -} - /** The glossary term. */ export interface AtlasGlossaryTerm { /** The GUID of the object. */ @@ -373,7 +353,11 @@ export interface AtlasGlossaryTerm { anchor?: AtlasGlossaryHeader; /** An array of related term headers as antonyms. */ antonyms?: Array; - /** Status of the AtlasGlossaryTerm */ + /** + * Status of the AtlasGlossaryTerm + * + * Possible values: "Draft", "Approved", "Alert", "Expired" + */ status?: TermStatus; /** The nick name of the term. */ nickName?: string; @@ -467,6 +451,8 @@ export interface AtlasRelatedObjectId { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. + * + * Possible values: "ACTIVE", "DELETED" */ entityStatus?: EntityStatus; /** Relationship type */ @@ -478,7 +464,11 @@ export interface AtlasRelatedObjectId { relationshipAttributes?: AtlasStruct; /** The GUID of the relationship. */ relationshipGuid?: string; - /** The enum of relationship status. */ + /** + * The enum of relationship status. + * + * Possible values: "ACTIVE", "DELETED" + */ relationshipStatus?: StatusAtlasRelationship; } @@ -505,90 +495,12 @@ export interface AtlasTermCategorizationHeader { displayText?: string; /** The GUID of the relationship. */ relationGuid?: string; - /** The status of term relationship. */ - status?: AtlasTermRelationshipStatus; -} - -/** The glossary term. */ -export interface AtlasGlossaryTerm { - /** The GUID of the object. */ - guid?: string; - /** An array of classifications. */ - classifications?: Array; - /** The long version description. */ - longDescription?: string; - /** The name of the glossary object. */ - name?: string; - /** The qualified name of the glossary object. */ - qualifiedName?: string; - /** The short version of description. */ - shortDescription?: string; - /** ETag for concurrency control. */ - lastModifiedTS?: string; - /** The created time of the record. */ - createTime?: number; - /** The user who created the record. */ - createdBy?: string; - /** The update time of the record. */ - updateTime?: number; - /** The user who updated the record. */ - updatedBy?: string; - /** The abbreviation of the term. */ - abbreviation?: string; - /** The name of the template. */ - templateName?: unknown[]; - /** The glossary header with basic information. */ - anchor?: AtlasGlossaryHeader; - /** An array of related term headers as antonyms. */ - antonyms?: Array; - /** Status of the AtlasGlossaryTerm */ - status?: TermStatus; - /** The nick name of the term. */ - nickName?: string; - /** The hierarchy information of the term. */ - hierarchyInfo?: Array; - /** An array of resource link for term */ - resources?: Array; - /** The dictionary of contacts for terms. Key could be Expert or Steward. */ - contacts?: Record>; /** - * The custom attributes of the term, which is map>. - * The - * key of the first layer map is term template name. + * The status of term relationship. + * + * Possible values: "DRAFT", "ACTIVE", "DEPRECATED", "OBSOLETE", "OTHER" */ - attributes?: Record>; - /** An array of related object IDs. */ - assignedEntities?: Array; - /** An array of term categorization headers. */ - categories?: Array; - /** An array of related term headers. */ - classifies?: Array; - /** An array of examples. */ - examples?: string[]; - /** An array of related term headers indicating the is-a relationship. */ - isA?: Array; - /** An array of preferred related term headers. */ - preferredTerms?: Array; - /** An array of related term headers that are preferred to. */ - preferredToTerms?: Array; - /** An array of related term headers that are replaced by. */ - replacedBy?: Array; - /** An array of related term headers for replacement. */ - replacementTerms?: Array; - /** An array of related term headers for see also. */ - seeAlso?: Array; - /** An array of related term headers as synonyms. */ - synonyms?: Array; - /** An array of translated related term headers. */ - translatedTerms?: Array; - /** An array of related term headers for translation. */ - translationTerms?: Array; - /** The usage of the term. */ - usage?: string; - /** An array of related term headers as valid values. */ - validValues?: Array; - /** An array of related term headers as valid values for other records. */ - validValuesFor?: Array; + status?: AtlasTermRelationshipStatus; } /** The search query of advanced search request. */ @@ -627,9 +539,17 @@ export interface SearchFacetItem { /** The sorting criteria */ export interface SearchFacetSort { - /** Order by count */ + /** + * Order by count + * + * Possible values: "asc", "desc" + */ count?: SearchSortOrder; - /** Order by value */ + /** + * Order by value + * + * Possible values: "asc", "desc" + */ value?: SearchSortOrder; } @@ -699,7 +619,11 @@ export interface AtlasRelationship { label?: string; /** Used to record the provenance of an instance of an entity or relationship */ provenanceType?: number; - /** The enum of relationship status. */ + /** + * The enum of relationship status. + * + * Possible values: "ACTIVE", "DELETED" + */ status?: StatusAtlasRelationship; /** The update time of the record. */ updateTime?: number; @@ -721,7 +645,11 @@ export interface AtlasObjectId { /** class that captures details of a struct-type. */ export interface AtlasBusinessMetadataDef { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategory; /** The created time of the record. */ createTime?: number; @@ -803,7 +731,11 @@ export interface NumberFormat { parseIntegerOnly?: boolean; /** The number format. */ percentInstance?: NumberFormat; - /** The enum of rounding mode. */ + /** + * The enum of rounding mode. + * + * Possible values: "UP", "DOWN", "CEILING", "FLOOR", "HALF_UP", "HALF_DOWN", "HALF_EVEN", "UNNECESSARY" + */ roundingMode?: RoundingMode; } @@ -825,7 +757,11 @@ export interface TimeZone { /** class that captures details of a struct-attribute. */ export interface AtlasAttributeDef { - /** single-valued attribute or multi-valued attribute. */ + /** + * single-valued attribute or multi-valued attribute. + * + * Possible values: "SINGLE", "LIST", "SET" + */ cardinality?: CardinalityValue; /** An array of constraints. */ constraints?: Array; @@ -863,7 +799,11 @@ export interface AtlasConstraintDef { /** class that captures details of a classification-type. */ export interface AtlasClassificationDef { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategory; /** The created time of the record. */ createTime?: number; @@ -926,7 +866,11 @@ export interface AtlasClassificationDef { /** class that captures details of a entity-type. */ export interface AtlasEntityDef { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategory; /** The created time of the record. */ createTime?: number; @@ -971,7 +915,11 @@ export interface AtlasEntityDef { * it is the container end of the relationship. */ export interface AtlasRelationshipAttributeDef { - /** single-valued attribute or multi-valued attribute. */ + /** + * single-valued attribute or multi-valued attribute. + * + * Possible values: "SINGLE", "LIST", "SET" + */ cardinality?: CardinalityValue; /** An array of constraints. */ constraints?: Array; @@ -1005,7 +953,11 @@ export interface AtlasRelationshipAttributeDef { /** class that captures details of an enum-type. */ export interface AtlasEnumDef { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategory; /** The created time of the record. */ createTime?: number; @@ -1090,7 +1042,11 @@ export interface AtlasEnumElementDef { * the entity instances */ export interface AtlasRelationshipDef { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategory; /** The created time of the record. */ createTime?: number; @@ -1143,6 +1099,8 @@ export interface AtlasRelationshipDef { * The difference being in the lifecycles of the container and its children. * In the COMPOSITION case, the children cannot exist without the container. * For AGGREGATION, the life cycles of the container and children are totally independent. + * + * Possible values: "ASSOCIATION", "AGGREGATION", "COMPOSITION" */ relationshipCategory?: RelationshipCategory; /** The label of the relationship. */ @@ -1156,7 +1114,11 @@ export interface AtlasRelationshipDef { * it is the container end of the relationship. */ export interface AtlasRelationshipEndDef { - /** single-valued attribute or multi-valued attribute. */ + /** + * single-valued attribute or multi-valued attribute. + * + * Possible values: "SINGLE", "LIST", "SET" + */ cardinality?: CardinalityValue; /** The description of the relationship end definition. */ description?: string; @@ -1172,7 +1134,11 @@ export interface AtlasRelationshipEndDef { /** class that captures details of a struct-type. */ export interface AtlasStructDef { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategory; /** The created time of the record. */ createTime?: number; @@ -1204,9 +1170,31 @@ export interface AtlasStructDef { attributeDefs?: Array; } +/** The definitions of types. */ +export interface AtlasTypesDef { + /** businessMetadataDefs */ + businessMetadataDefs?: Array; + /** An array of classification definitions. */ + classificationDefs?: Array; + /** An array of entity definitions. */ + entityDefs?: Array; + /** An array of enum definitions. */ + enumDefs?: Array; + /** An array of relationship definitions. */ + relationshipDefs?: Array; + /** An array of struct definitions. */ + structDefs?: Array; + /** An array of term template definitions. */ + termTemplateDefs?: Array; +} + /** Term template definition for glossary term. */ export interface TermTemplateDef { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategory; /** The created time of the record. */ createTime?: number; @@ -1238,72 +1226,29 @@ export interface TermTemplateDef { attributeDefs?: Array; } -/** The definitions of types. */ -export interface AtlasTypesDef { - /** businessMetadataDefs */ - businessMetadataDefs?: Array; - /** An array of classification definitions. */ - classificationDefs?: Array; - /** An array of entity definitions. */ - entityDefs?: Array; - /** An array of enum definitions. */ - enumDefs?: Array; - /** An array of relationship definitions. */ - relationshipDefs?: Array; - /** An array of struct definitions. */ - structDefs?: Array; - /** An array of term template definitions. */ - termTemplateDefs?: Array; -} - -/** Enum for business attribute update behavior */ -export type BusinessAttributeUpdateBehavior = "ignore" | "replace" | "merge"; -/** Status - can be active or deleted */ -export type EntityStatus = "ACTIVE" | "DELETED"; -/** Status for term assignment */ -export type AtlasTermAssignmentStatus = - | "DISCOVERED" - | "PROPOSED" - | "IMPORTED" - | "VALIDATED" - | "DEPRECATED" - | "OBSOLETE" - | "OTHER"; +/** Alias for BusinessAttributeUpdateBehavior */ +export type BusinessAttributeUpdateBehavior = string; +/** Alias for EntityStatus */ +export type EntityStatus = string; +/** Alias for AtlasTermAssignmentStatus */ +export type AtlasTermAssignmentStatus = string; /** Business metadata to send to the service */ export type BusinessMetadataOptions = FormData | Array; -/** Status for atlas term relationship */ -export type AtlasTermRelationshipStatus = "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; -/** Status for term */ -export type TermStatus = "Draft" | "Approved" | "Alert" | "Expired"; -/** Status for atlas relationship */ -export type StatusAtlasRelationship = "ACTIVE" | "DELETED"; -/** Search sort order */ -export type SearchSortOrder = "asc" | "desc"; -/** Lineage direction */ -export type LineageDirection = "INPUT" | "OUTPUT" | "BOTH"; -/** Type Category */ -export type TypeCategory = - | "PRIMITIVE" - | "OBJECT_ID_TYPE" - | "ENUM" - | "STRUCT" - | "CLASSIFICATION" - | "ENTITY" - | "ARRAY" - | "MAP" - | "RELATIONSHIP" - | "TERM_TEMPLATE"; -/** Rounding Mode */ -export type RoundingMode = - | "UP" - | "DOWN" - | "CEILING" - | "FLOOR" - | "HALF_UP" - | "HALF_DOWN" - | "HALF_EVEN" - | "UNNECESSARY"; -/** Cardinality */ -export type CardinalityValue = "SINGLE" | "LIST" | "SET"; -/** Relationship Category */ -export type RelationshipCategory = "ASSOCIATION" | "AGGREGATION" | "COMPOSITION"; +/** Alias for AtlasTermRelationshipStatus */ +export type AtlasTermRelationshipStatus = string; +/** Alias for TermStatus */ +export type TermStatus = string; +/** Alias for StatusAtlasRelationship */ +export type StatusAtlasRelationship = string; +/** Alias for SearchSortOrder */ +export type SearchSortOrder = string; +/** Alias for LineageDirection */ +export type LineageDirection = string; +/** Alias for TypeCategory */ +export type TypeCategory = string; +/** Alias for RoundingMode */ +export type RoundingMode = string; +/** Alias for CardinalityValue */ +export type CardinalityValue = string; +/** Alias for RelationshipCategory */ +export type RelationshipCategory = string; diff --git a/sdk/purview/purview-datamap-rest/src/outputModels.ts b/sdk/purview/purview-datamap-rest/src/outputModels.ts index 45c76ed48a7d..51cab200410e 100644 --- a/sdk/purview/purview-datamap-rest/src/outputModels.ts +++ b/sdk/purview/purview-datamap-rest/src/outputModels.ts @@ -1,6 +1,17 @@ // 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 { + /** The referred entities. */ + referredEntities?: Record; + /** 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 { /** The attributes of the struct. */ @@ -40,6 +51,8 @@ export interface AtlasEntityOutput { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. + * + * Possible values: "ACTIVE", "DELETED" */ status?: EntityStatusOutput; /** The update time of the record. */ @@ -68,6 +81,8 @@ export interface AtlasClassificationOutput { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. + * + * Possible values: "ACTIVE", "DELETED" */ entityStatus?: EntityStatusOutput; /** Determines if propagations will be removed on entity deletion. */ @@ -100,7 +115,11 @@ export interface AtlasTermAssignmentHeaderOutput { expression?: string; /** The GUID of the relationship. */ relationGuid?: string; - /** The status of terms assignment. */ + /** + * The status of terms assignment. + * + * Possible values: "DISCOVERED", "PROPOSED", "IMPORTED", "VALIDATED", "DEPRECATED", "OBSOLETE", "OTHER" + */ status?: AtlasTermAssignmentStatusOutput; /** The steward of the term. */ steward?: string; @@ -153,6 +172,8 @@ export interface AtlasEntityHeaderOutput { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. + * + * Possible values: "ACTIVE", "DELETED" */ status?: EntityStatusOutput; } @@ -178,17 +199,6 @@ export interface AtlasEntitiesWithExtInfoOutput { entities?: Array; } -/** - * An instance of an entity along with extended info - like hive_table, - * hive_database. - */ -export interface AtlasEntityWithExtInfoOutput { - /** The referred entities. */ - referredEntities?: Record; - /** An instance of an entity - like hive_table, hive_database. */ - entity?: AtlasEntityOutput; -} - /** REST serialization friendly list. */ export interface AtlasClassificationsOutput { /** An array of objects. */ @@ -197,7 +207,11 @@ export interface AtlasClassificationsOutput { pageSize?: number; /** The sorted by field. */ sortBy?: string; - /** to specify whether the result should be sorted? If yes, whether asc or desc. */ + /** + * to specify whether the result should be sorted? If yes, whether asc or desc. + * + * Possible values: "NONE", "ASC", "DESC" + */ sortType?: SortTypeOutput; /** The start index of the page. */ startIndex?: number; @@ -217,7 +231,11 @@ export interface BulkImportResultOutput { export interface ImportInfoOutput { /** childObjectName */ childObjectName?: string; - /** importStatus */ + /** + * importStatus + * + * Possible values: "SUCCESS", "FAILED" + */ importStatus?: ImportStatusOutput; /** parentObjectName */ parentObjectName?: string; @@ -283,7 +301,11 @@ export interface AtlasRelatedTermHeaderOutput { expression?: string; /** The GUID of the relationship. */ relationGuid?: string; - /** The status of term relationship. */ + /** + * The status of term relationship. + * + * Possible values: "DRAFT", "ACTIVE", "DEPRECATED", "OBSOLETE", "OTHER" + */ status?: AtlasTermRelationshipStatusOutput; /** The steward of the term. */ steward?: string; @@ -335,6 +357,92 @@ export interface AtlasGlossaryHeaderOutput { relationGuid?: string; } +/** The glossary term. */ +export interface AtlasGlossaryTermOutput { + /** The GUID of the object. */ + guid?: string; + /** An array of classifications. */ + classifications?: Array; + /** The long version description. */ + longDescription?: string; + /** The name of the glossary object. */ + name?: string; + /** The qualified name of the glossary object. */ + qualifiedName?: string; + /** The short version of description. */ + shortDescription?: string; + /** ETag for concurrency control. */ + lastModifiedTS?: string; + /** The created time of the record. */ + createTime?: number; + /** The user who created the record. */ + createdBy?: string; + /** The update time of the record. */ + updateTime?: number; + /** The user who updated the record. */ + updatedBy?: string; + /** The abbreviation of the term. */ + abbreviation?: string; + /** The name of the template. */ + templateName?: any[]; + /** The glossary header with basic information. */ + anchor?: AtlasGlossaryHeaderOutput; + /** An array of related term headers as antonyms. */ + antonyms?: Array; + /** + * Status of the AtlasGlossaryTerm + * + * Possible values: "Draft", "Approved", "Alert", "Expired" + */ + status?: TermStatusOutput; + /** The nick name of the term. */ + nickName?: string; + /** The hierarchy information of the term. */ + hierarchyInfo?: Array; + /** An array of resource link for term */ + resources?: Array; + /** The dictionary of contacts for terms. Key could be Expert or Steward. */ + contacts?: Record>; + /** + * The custom attributes of the term, which is map>. + * The + * key of the first layer map is term template name. + */ + attributes?: Record>; + /** An array of related object IDs. */ + assignedEntities?: Array; + /** An array of term categorization headers. */ + categories?: Array; + /** An array of related term headers. */ + classifies?: Array; + /** An array of examples. */ + examples?: string[]; + /** An array of related term headers indicating the is-a relationship. */ + isA?: Array; + /** An array of preferred related term headers. */ + preferredTerms?: Array; + /** An array of related term headers that are preferred to. */ + preferredToTerms?: Array; + /** An array of related term headers that are replaced by. */ + replacedBy?: Array; + /** An array of related term headers for replacement. */ + replacementTerms?: Array; + /** An array of related term headers for see also. */ + seeAlso?: Array; + /** An array of related term headers as synonyms. */ + synonyms?: Array; + /** An array of translated related term headers. */ + translatedTerms?: Array; + /** An array of related term headers for translation. */ + translationTerms?: Array; + /** The usage of the term. */ + usage?: string; + /** An array of related term headers as valid values. */ + validValues?: Array; + /** An array of related term headers as valid values for other records. */ + validValuesFor?: Array; +} + /** PurviewObjectId */ export interface PurviewObjectIdOutput { /** The GUID of the object. */ @@ -379,6 +487,8 @@ export interface AtlasRelatedObjectIdOutput { /** * Status of the entity - can be active or deleted. Deleted entities are not * removed. + * + * Possible values: "ACTIVE", "DELETED" */ entityStatus?: EntityStatusOutput; /** Relationship type */ @@ -390,7 +500,11 @@ export interface AtlasRelatedObjectIdOutput { relationshipAttributes?: AtlasStructOutput; /** The GUID of the relationship. */ relationshipGuid?: string; - /** The enum of relationship status. */ + /** + * The enum of relationship status. + * + * Possible values: "ACTIVE", "DELETED" + */ relationshipStatus?: StatusAtlasRelationshipOutput; } @@ -417,90 +531,12 @@ export interface AtlasTermCategorizationHeaderOutput { displayText?: string; /** The GUID of the relationship. */ relationGuid?: string; - /** The status of term relationship. */ - status?: AtlasTermRelationshipStatusOutput; -} - -/** The glossary term. */ -export interface AtlasGlossaryTermOutput { - /** The GUID of the object. */ - guid?: string; - /** An array of classifications. */ - classifications?: Array; - /** The long version description. */ - longDescription?: string; - /** The name of the glossary object. */ - name?: string; - /** The qualified name of the glossary object. */ - qualifiedName?: string; - /** The short version of description. */ - shortDescription?: string; - /** ETag for concurrency control. */ - lastModifiedTS?: string; - /** The created time of the record. */ - createTime?: number; - /** The user who created the record. */ - createdBy?: string; - /** The update time of the record. */ - updateTime?: number; - /** The user who updated the record. */ - updatedBy?: string; - /** The abbreviation of the term. */ - abbreviation?: string; - /** The name of the template. */ - templateName?: any[]; - /** The glossary header with basic information. */ - anchor?: AtlasGlossaryHeaderOutput; - /** An array of related term headers as antonyms. */ - antonyms?: Array; - /** Status of the AtlasGlossaryTerm */ - status?: TermStatusOutput; - /** The nick name of the term. */ - nickName?: string; - /** The hierarchy information of the term. */ - hierarchyInfo?: Array; - /** An array of resource link for term */ - resources?: Array; - /** The dictionary of contacts for terms. Key could be Expert or Steward. */ - contacts?: Record>; /** - * The custom attributes of the term, which is map>. - * The - * key of the first layer map is term template name. + * The status of term relationship. + * + * Possible values: "DRAFT", "ACTIVE", "DEPRECATED", "OBSOLETE", "OTHER" */ - attributes?: Record>; - /** An array of related object IDs. */ - assignedEntities?: Array; - /** An array of term categorization headers. */ - categories?: Array; - /** An array of related term headers. */ - classifies?: Array; - /** An array of examples. */ - examples?: string[]; - /** An array of related term headers indicating the is-a relationship. */ - isA?: Array; - /** An array of preferred related term headers. */ - preferredTerms?: Array; - /** An array of related term headers that are preferred to. */ - preferredToTerms?: Array; - /** An array of related term headers that are replaced by. */ - replacedBy?: Array; - /** An array of related term headers for replacement. */ - replacementTerms?: Array; - /** An array of related term headers for see also. */ - seeAlso?: Array; - /** An array of related term headers as synonyms. */ - synonyms?: Array; - /** An array of translated related term headers. */ - translatedTerms?: Array; - /** An array of related term headers for translation. */ - translationTerms?: Array; - /** The usage of the term. */ - usage?: string; - /** An array of related term headers as valid values. */ - validValues?: Array; - /** An array of related term headers as valid values for other records. */ - validValuesFor?: Array; + status?: AtlasTermRelationshipStatusOutput; } /** The extended information of glossary. */ @@ -796,7 +832,11 @@ export interface AtlasLineageInfoOutput { lineageWidth?: number; /** The number of children node. */ childrenCount?: number; - /** The enum of lineage direction. */ + /** + * The enum of lineage direction. + * + * Possible values: "INPUT", "OUTPUT", "BOTH" + */ lineageDirection?: LineageDirectionOutput; /** An array of parentRelations relations. */ parentRelations?: Array; @@ -824,16 +864,6 @@ export interface LineageRelationOutput { toEntityId?: string; } -/** Reference to an object-instance of a type - like entity. */ -export interface AtlasObjectIdOutput { - /** The GUID of the object. */ - guid?: string; - /** The name of the type. */ - typeName?: string; - /** The unique attributes of the object. */ - uniqueAttributes?: Record; -} - /** Atlas relationship instance. */ export interface AtlasRelationshipOutput { /** The attributes of the struct. */ @@ -858,7 +888,11 @@ export interface AtlasRelationshipOutput { label?: string; /** Used to record the provenance of an instance of an entity or relationship */ provenanceType?: number; - /** The enum of relationship status. */ + /** + * The enum of relationship status. + * + * Possible values: "ACTIVE", "DELETED" + */ status?: StatusAtlasRelationshipOutput; /** The update time of the record. */ updateTime?: number; @@ -868,6 +902,16 @@ export interface AtlasRelationshipOutput { version?: number; } +/** Reference to an object-instance of a type - like entity. */ +export interface AtlasObjectIdOutput { + /** The GUID of the object. */ + guid?: string; + /** The name of the type. */ + typeName?: string; + /** The unique attributes of the object. */ + uniqueAttributes?: Record; +} + /** The relationship with extended information. */ export interface AtlasRelationshipWithExtInfoOutput { /** The referred entity header. */ @@ -878,7 +922,11 @@ export interface AtlasRelationshipWithExtInfoOutput { /** class that captures details of a struct-type. */ export interface AtlasBusinessMetadataDefOutput { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; @@ -960,7 +1008,11 @@ export interface NumberFormatOutput { parseIntegerOnly?: boolean; /** The number format. */ percentInstance?: NumberFormatOutput; - /** The enum of rounding mode. */ + /** + * The enum of rounding mode. + * + * Possible values: "UP", "DOWN", "CEILING", "FLOOR", "HALF_UP", "HALF_DOWN", "HALF_EVEN", "UNNECESSARY" + */ roundingMode?: RoundingModeOutput; } @@ -982,7 +1034,11 @@ export interface TimeZoneOutput { /** class that captures details of a struct-attribute. */ export interface AtlasAttributeDefOutput { - /** single-valued attribute or multi-valued attribute. */ + /** + * single-valued attribute or multi-valued attribute. + * + * Possible values: "SINGLE", "LIST", "SET" + */ cardinality?: CardinalityValueOutput; /** An array of constraints. */ constraints?: Array; @@ -1020,7 +1076,11 @@ export interface AtlasConstraintDefOutput { /** class that captures details of a classification-type. */ export interface AtlasClassificationDefOutput { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; @@ -1083,7 +1143,11 @@ export interface AtlasClassificationDefOutput { /** class that captures details of a entity-type. */ export interface AtlasEntityDefOutput { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; @@ -1128,7 +1192,11 @@ export interface AtlasEntityDefOutput { * it is the container end of the relationship. */ export interface AtlasRelationshipAttributeDefOutput { - /** single-valued attribute or multi-valued attribute. */ + /** + * single-valued attribute or multi-valued attribute. + * + * Possible values: "SINGLE", "LIST", "SET" + */ cardinality?: CardinalityValueOutput; /** An array of constraints. */ constraints?: Array; @@ -1162,7 +1230,11 @@ export interface AtlasRelationshipAttributeDefOutput { /** class that captures details of an enum-type. */ export interface AtlasEnumDefOutput { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; @@ -1247,7 +1319,11 @@ export interface AtlasEnumElementDefOutput { * the entity instances */ export interface AtlasRelationshipDefOutput { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; @@ -1300,6 +1376,8 @@ export interface AtlasRelationshipDefOutput { * The difference being in the lifecycles of the container and its children. * In the COMPOSITION case, the children cannot exist without the container. * For AGGREGATION, the life cycles of the container and children are totally independent. + * + * Possible values: "ASSOCIATION", "AGGREGATION", "COMPOSITION" */ relationshipCategory?: RelationshipCategoryOutput; /** The label of the relationship. */ @@ -1313,7 +1391,11 @@ export interface AtlasRelationshipDefOutput { * it is the container end of the relationship. */ export interface AtlasRelationshipEndDefOutput { - /** single-valued attribute or multi-valued attribute. */ + /** + * single-valued attribute or multi-valued attribute. + * + * Possible values: "SINGLE", "LIST", "SET" + */ cardinality?: CardinalityValueOutput; /** The description of the relationship end definition. */ description?: string; @@ -1329,7 +1411,11 @@ export interface AtlasRelationshipEndDefOutput { /** class that captures details of a struct-type. */ export interface AtlasStructDefOutput { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; @@ -1363,7 +1449,11 @@ export interface AtlasStructDefOutput { /** The definitions of type. */ export interface AtlasTypeDefOutput { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; @@ -1451,6 +1541,8 @@ export interface AtlasTypeDefOutput { * The difference being in the lifecycles of the container and its children. * In the COMPOSITION case, the children cannot exist without the container. * For AGGREGATION, the life cycles of the container and children are totally independent. + * + * Possible values: "ASSOCIATION", "AGGREGATION", "COMPOSITION" */ relationshipCategory?: RelationshipCategoryOutput; /** The label of the relationship. */ @@ -1479,7 +1571,11 @@ export interface AtlasTypesDefOutput { /** Term template definition for glossary term. */ export interface TermTemplateDefOutput { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategoryOutput; /** The created time of the record. */ createTime?: number; @@ -1513,7 +1609,11 @@ export interface TermTemplateDefOutput { /** The basic information of the type definition. */ export interface AtlasTypeDefHeaderOutput { - /** The enum of type category. */ + /** + * The enum of type category. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ category?: TypeCategoryOutput; /** The GUID of the type definition. */ guid?: string; @@ -1521,57 +1621,27 @@ export interface AtlasTypeDefHeaderOutput { name?: string; } -/** Status - can be active or deleted */ -export type EntityStatusOutput = "ACTIVE" | "DELETED"; -/** Status for term assignment */ -export type AtlasTermAssignmentStatusOutput = - | "DISCOVERED" - | "PROPOSED" - | "IMPORTED" - | "VALIDATED" - | "DEPRECATED" - | "OBSOLETE" - | "OTHER"; -/** Type for sorting */ -export type SortTypeOutput = "NONE" | "ASC" | "DESC"; -/** Status for import */ -export type ImportStatusOutput = "SUCCESS" | "FAILED"; -/** Status for atlas term relationship */ -export type AtlasTermRelationshipStatusOutput = - | "DRAFT" - | "ACTIVE" - | "DEPRECATED" - | "OBSOLETE" - | "OTHER"; -/** Status for term */ -export type TermStatusOutput = "Draft" | "Approved" | "Alert" | "Expired"; -/** Status for atlas relationship */ -export type StatusAtlasRelationshipOutput = "ACTIVE" | "DELETED"; -/** Lineage direction */ -export type LineageDirectionOutput = "INPUT" | "OUTPUT" | "BOTH"; -/** Type Category */ -export type TypeCategoryOutput = - | "PRIMITIVE" - | "OBJECT_ID_TYPE" - | "ENUM" - | "STRUCT" - | "CLASSIFICATION" - | "ENTITY" - | "ARRAY" - | "MAP" - | "RELATIONSHIP" - | "TERM_TEMPLATE"; -/** Rounding Mode */ -export type RoundingModeOutput = - | "UP" - | "DOWN" - | "CEILING" - | "FLOOR" - | "HALF_UP" - | "HALF_DOWN" - | "HALF_EVEN" - | "UNNECESSARY"; -/** Cardinality */ -export type CardinalityValueOutput = "SINGLE" | "LIST" | "SET"; -/** Relationship Category */ -export type RelationshipCategoryOutput = "ASSOCIATION" | "AGGREGATION" | "COMPOSITION"; +/** Alias for EntityStatusOutput */ +export type EntityStatusOutput = string; +/** Alias for AtlasTermAssignmentStatusOutput */ +export type AtlasTermAssignmentStatusOutput = string; +/** Alias for SortTypeOutput */ +export type SortTypeOutput = string; +/** Alias for ImportStatusOutput */ +export type ImportStatusOutput = string; +/** Alias for AtlasTermRelationshipStatusOutput */ +export type AtlasTermRelationshipStatusOutput = string; +/** Alias for TermStatusOutput */ +export type TermStatusOutput = string; +/** Alias for StatusAtlasRelationshipOutput */ +export type StatusAtlasRelationshipOutput = string; +/** Alias for LineageDirectionOutput */ +export type LineageDirectionOutput = string; +/** Alias for TypeCategoryOutput */ +export type TypeCategoryOutput = string; +/** Alias for RoundingModeOutput */ +export type RoundingModeOutput = string; +/** Alias for CardinalityValueOutput */ +export type CardinalityValueOutput = string; +/** Alias for RelationshipCategoryOutput */ +export type RelationshipCategoryOutput = string; diff --git a/sdk/purview/purview-datamap-rest/src/parameters.ts b/sdk/purview/purview-datamap-rest/src/parameters.ts index c153827883fd..c0a50020bf00 100644 --- a/sdk/purview/purview-datamap-rest/src/parameters.ts +++ b/sdk/purview/purview-datamap-rest/src/parameters.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { RequestParameters } from "@azure-rest/core-client"; -import { +import type { RequestParameters } from "@azure-rest/core-client"; +import type { BusinessAttributeUpdateBehavior, AtlasEntityWithExtInfo, AtlasEntitiesWithExtInfo, @@ -25,6 +25,7 @@ import { } from "./models.js"; export interface EntityCreateOrUpdateBodyParam { + /** Body parameter. */ body: AtlasEntityWithExtInfo; } @@ -34,6 +35,8 @@ export interface EntityCreateOrUpdateQueryParamProperties { /** * Used to define the update behavior for business attributes when updating * entities. + * + * Possible values: "ignore", "replace", "merge" */ businessAttributeUpdateBehavior?: BusinessAttributeUpdateBehavior; /** @@ -51,11 +54,21 @@ export type EntityCreateOrUpdateParameters = EntityCreateOrUpdateQueryParam & EntityCreateOrUpdateBodyParam & RequestParameters; +/** This is the wrapper object for the parameter `guid` with explode set to true and style set to form. */ +export interface EntityListByGuidsGuidQueryParam { + /** Value of the parameter */ + value: string[]; + /** Should we explode the value? */ + explode: true; + /** Style of the value */ + style: "form"; +} + export interface EntityListByGuidsQueryParamProperties { /** The API version to use for this operation. */ "api-version"?: string; - /** 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; + /** An array of GUIDs of entities to list. */ + guid: EntityListByGuidsGuidQueryParam; /** Whether to return minimal information for referred entities. */ minExtInfo?: boolean; /** Whether to ignore relationship attributes. */ @@ -69,6 +82,7 @@ export interface EntityListByGuidsQueryParam { export type EntityListByGuidsParameters = EntityListByGuidsQueryParam & RequestParameters; export interface EntityBulkCreateOrUpdateBodyParam { + /** Body parameter. */ body: AtlasEntitiesWithExtInfo; } @@ -83,6 +97,8 @@ export interface EntityBulkCreateOrUpdateQueryParamProperties { /** * Used to define the update behavior for business attributes when updating * entities. + * + * Possible values: "ignore", "replace", "merge" */ businessAttributeUpdateBehavior?: BusinessAttributeUpdateBehavior; } @@ -95,9 +111,19 @@ export type EntityBulkCreateOrUpdateParameters = EntityBulkCreateOrUpdateQueryPa EntityBulkCreateOrUpdateBodyParam & RequestParameters; +/** This is the wrapper object for the parameter `guid` with explode set to true and style set to form. */ +export interface EntityBulkDeleteGuidQueryParam { + /** Value of the parameter */ + value: string[]; + /** Should we explode the value? */ + explode: true; + /** Style of the value */ + style: "form"; +} + export interface EntityBulkDeleteQueryParamProperties { - /** 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; + /** An array of GUIDs of entities to delete. */ + guid: EntityBulkDeleteGuidQueryParam; } export interface EntityBulkDeleteQueryParam { @@ -107,6 +133,7 @@ export interface EntityBulkDeleteQueryParam { export type EntityBulkDeleteParameters = EntityBulkDeleteQueryParam & RequestParameters; export interface EntityAddClassificationBodyParam { + /** Body parameter. */ body: ClassificationAssociateOptions; } @@ -185,6 +212,7 @@ export type EntityGetByUniqueAttributesParameters = EntityGetByUniqueAttributesQ RequestParameters; export interface EntityPartialUpdateByUniqueAttributesBodyParam { + /** Body parameter. */ body: AtlasEntityWithExtInfo; } @@ -280,6 +308,7 @@ export type EntityUpdateClassificationsByUniqueAttributeParameters = RequestParameters; export interface EntityBulkSetClassificationsBodyParam { + /** Body parameter. */ body: AtlasEntityHeaders; } @@ -355,6 +384,7 @@ export type EntityAddOrUpdateBusinessMetadataAttributesParameters = export type EntityGetSampleBusinessMetadataTemplateParameters = RequestParameters; export interface EntityImportBusinessMetadataBodyParam { + /** Body parameter. */ body: BusinessMetadataOptions; } @@ -455,6 +485,7 @@ export type EntityAddLabelsByUniqueAttributeParameters = RequestParameters; export interface EntityMoveEntitiesToCollectionBodyParam { + /** Body parameter. */ body: MoveEntitiesOptions; } @@ -493,6 +524,7 @@ export interface GlossaryListQueryParam { export type GlossaryListParameters = GlossaryListQueryParam & RequestParameters; export interface GlossaryCreateBodyParam { + /** Body parameter. */ body: AtlasGlossary; } @@ -507,6 +539,7 @@ export type GlossaryCreateCategoriesParameters = GlossaryCreateCategoriesBodyPar RequestParameters; export interface GlossaryCreateCategoryBodyParam { + /** Body parameter. */ body: AtlasGlossaryCategory; } @@ -514,6 +547,7 @@ export type GlossaryCreateCategoryParameters = GlossaryCreateCategoryBodyParam & export type GlossaryGetCategoryParameters = RequestParameters; export interface GlossaryUpdateCategoryBodyParam { + /** Body parameter. */ body: AtlasGlossaryCategory; } @@ -564,6 +598,7 @@ export type GlossaryListCategoryTermsParameters = GlossaryListCategoryTermsQuery RequestParameters; export interface GlossaryCreateTermBodyParam { + /** Body parameter. */ body: AtlasGlossaryTerm; } @@ -592,6 +627,7 @@ export interface GlossaryGetTermQueryParam { export type GlossaryGetTermParameters = GlossaryGetTermQueryParam & RequestParameters; export interface GlossaryUpdateTermBodyParam { + /** Body parameter. */ body: AtlasGlossaryTerm; } @@ -706,6 +742,7 @@ export type GlossaryListRelatedTermsParameters = GlossaryListRelatedTermsQueryPa export type GlossaryGetParameters = RequestParameters; export interface GlossaryUpdateBodyParam { + /** Body parameter. */ body: AtlasGlossary; } @@ -824,6 +861,7 @@ export type GlossaryListTermHeadersParameters = GlossaryListTermHeadersQueryPara RequestParameters; export interface DiscoveryQueryBodyParam { + /** Body parameter. */ body: QueryOptions; } @@ -841,6 +879,7 @@ export type DiscoveryQueryParameters = DiscoveryQueryQueryParam & RequestParameters; export interface DiscoverySuggestBodyParam { + /** Body parameter. */ body: SuggestOptions; } @@ -858,6 +897,7 @@ export type DiscoverySuggestParameters = DiscoverySuggestQueryParam & RequestParameters; export interface DiscoveryAutoCompleteBodyParam { + /** Body parameter. */ body: AutoCompleteOptions; } @@ -877,7 +917,11 @@ export type DiscoveryAutoCompleteParameters = DiscoveryAutoCompleteQueryParam & export interface LineageGetQueryParamProperties { /** The number of hops for lineage. */ depth?: number; - /** The direction of the lineage, which could be INPUT, OUTPUT or BOTH. */ + /** + * The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + * + * Possible values: "INPUT", "OUTPUT", "BOTH" + */ direction: LineageDirection; } @@ -890,7 +934,11 @@ export type LineageGetParameters = LineageGetQueryParam & RequestParameters; export interface LineageGetNextPageQueryParamProperties { /** The API version to use for this operation. */ "api-version": string; - /** The direction of the lineage, which could be INPUT, OUTPUT or BOTH. */ + /** + * The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + * + * Possible values: "INPUT", "OUTPUT", "BOTH" + */ direction: LineageDirection; /** The offset for pagination purpose. */ offset?: number; @@ -907,7 +955,11 @@ export type LineageGetNextPageParameters = LineageGetNextPageQueryParam & Reques export interface LineageGetByUniqueAttributeQueryParamProperties { /** The number of hops for lineage. */ depth?: number; - /** The direction of the lineage, which could be INPUT, OUTPUT or BOTH. */ + /** + * The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + * + * Possible values: "INPUT", "OUTPUT", "BOTH" + */ direction: LineageDirection; /** * The qualified name of the entity. (This is only an example. qualifiedName can @@ -924,12 +976,14 @@ export type LineageGetByUniqueAttributeParameters = LineageGetByUniqueAttributeQ RequestParameters; export interface RelationshipCreateBodyParam { + /** Body parameter. */ body: AtlasRelationship; } export type RelationshipCreateParameters = RelationshipCreateBodyParam & RequestParameters; export interface RelationshipUpdateBodyParam { + /** Body parameter. */ body: AtlasRelationship; } @@ -971,7 +1025,11 @@ export interface TypeListQueryParamProperties { * when search filter type=term_template */ includeTermTemplate?: boolean; - /** Typedef name as search filter when get typedefs. */ + /** + * Typedef name as search filter when get typedefs. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ type?: TypeCategory; } @@ -982,18 +1040,21 @@ export interface TypeListQueryParam { export type TypeListParameters = TypeListQueryParam & RequestParameters; export interface TypeBulkCreateBodyParam { + /** Body parameter. */ body: AtlasTypesDef; } export type TypeBulkCreateParameters = TypeBulkCreateBodyParam & RequestParameters; export interface TypeBulkUpdateBodyParam { + /** Body parameter. */ body: AtlasTypesDef; } export type TypeBulkUpdateParameters = TypeBulkUpdateBodyParam & RequestParameters; export interface TypeBulkDeleteBodyParam { + /** Body parameter. */ body: AtlasTypesDef; } @@ -1008,7 +1069,11 @@ export interface TypeListHeadersQueryParamProperties { * when search filter type=term_template */ includeTermTemplate?: boolean; - /** Typedef name as search filter when get typedefs. */ + /** + * Typedef name as search filter when get typedefs. + * + * Possible values: "PRIMITIVE", "OBJECT_ID_TYPE", "ENUM", "STRUCT", "CLASSIFICATION", "ENTITY", "ARRAY", "MAP", "RELATIONSHIP", "TERM_TEMPLATE" + */ type?: TypeCategory; } diff --git a/sdk/purview/purview-datamap-rest/src/responses.ts b/sdk/purview/purview-datamap-rest/src/responses.ts index 72eb3e2fb9c1..58e5f9bec412 100644 --- a/sdk/purview/purview-datamap-rest/src/responses.ts +++ b/sdk/purview/purview-datamap-rest/src/responses.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { +import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; +import type { HttpResponse } from "@azure-rest/core-client"; +import type { EntityMutationResultOutput, AtlasErrorResponseOutput, AtlasEntitiesWithExtInfoOutput, diff --git a/sdk/purview/purview-datamap-rest/tsp-location.yaml b/sdk/purview/purview-datamap-rest/tsp-location.yaml index 2a823d141089..7f50fab51b20 100644 --- a/sdk/purview/purview-datamap-rest/tsp-location.yaml +++ b/sdk/purview/purview-datamap-rest/tsp-location.yaml @@ -1,5 +1,4 @@ directory: specification/purview/Azure.Analytics.Purview.DataMap +commit: b9d42131fa23babd959c491b44870a30ea9506cd repo: Azure/azure-rest-api-specs -commit: e4dd3e7e4d0402a81b2bef7dd754d3e46e8a8ab5 -additionalDirectories: [] - +additionalDirectories: From 6c77af98a473e9a47c3d5ebae42c5a83dd6c4d6c Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:36:32 +0800 Subject: [PATCH 7/8] Update purview-datamap.api.md --- .../review/purview-datamap.api.md | 155 +++++------------- 1 file changed, 44 insertions(+), 111 deletions(-) diff --git a/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md b/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md index e09519f12061..8f8d0194d6c1 100644 --- a/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md +++ b/sdk/purview/purview-datamap-rest/review/purview-datamap.api.md @@ -10,9 +10,9 @@ import { createFile } from '@azure/core-rest-pipeline'; import { createFileFromStream } from '@azure/core-rest-pipeline'; import { CreateFileFromStreamOptions } from '@azure/core-rest-pipeline'; import { CreateFileOptions } from '@azure/core-rest-pipeline'; -import { HttpResponse } from '@azure-rest/core-client'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; +import type { HttpResponse } from '@azure-rest/core-client'; +import type { RawHttpHeaders } from '@azure/core-rest-pipeline'; +import type { RequestParameters } from '@azure-rest/core-client'; import type { StreamableMethod } from '@azure-rest/core-client'; import type { TokenCredential } from '@azure/core-auth'; @@ -431,25 +431,6 @@ export interface AtlasGlossaryCategory { updateTime?: number; } -// @public -export interface AtlasGlossaryCategory { - anchor?: AtlasGlossaryHeader; - childrenCategories?: Array; - classifications?: Array; - createdBy?: string; - createTime?: number; - guid?: string; - lastModifiedTS?: string; - longDescription?: string; - name?: string; - parentCategory?: AtlasRelatedCategoryHeader; - qualifiedName?: string; - shortDescription?: string; - terms?: Array; - updatedBy?: string; - updateTime?: number; -} - // @public export interface AtlasGlossaryCategoryOutput { anchor?: AtlasGlossaryHeaderOutput; @@ -564,47 +545,6 @@ export interface AtlasGlossaryTerm { validValuesFor?: Array; } -// @public -export interface AtlasGlossaryTerm { - abbreviation?: string; - anchor?: AtlasGlossaryHeader; - antonyms?: Array; - assignedEntities?: Array; - attributes?: Record>; - categories?: Array; - classifications?: Array; - classifies?: Array; - contacts?: Record>; - createdBy?: string; - createTime?: number; - examples?: string[]; - guid?: string; - hierarchyInfo?: Array; - isA?: Array; - lastModifiedTS?: string; - longDescription?: string; - name?: string; - nickName?: string; - preferredTerms?: Array; - preferredToTerms?: Array; - qualifiedName?: string; - replacedBy?: Array; - replacementTerms?: Array; - resources?: Array; - seeAlso?: Array; - shortDescription?: string; - status?: TermStatus; - synonyms?: Array; - templateName?: unknown[]; - translatedTerms?: Array; - translationTerms?: Array; - updatedBy?: string; - updateTime?: number; - usage?: string; - validValues?: Array; - validValuesFor?: Array; -} - // @public export interface AtlasGlossaryTermOutput { abbreviation?: string; @@ -966,10 +906,10 @@ export interface AtlasTermAssignmentHeaderOutput { } // @public -export type AtlasTermAssignmentStatus = "DISCOVERED" | "PROPOSED" | "IMPORTED" | "VALIDATED" | "DEPRECATED" | "OBSOLETE" | "OTHER"; +export type AtlasTermAssignmentStatus = string; // @public -export type AtlasTermAssignmentStatusOutput = "DISCOVERED" | "PROPOSED" | "IMPORTED" | "VALIDATED" | "DEPRECATED" | "OBSOLETE" | "OTHER"; +export type AtlasTermAssignmentStatusOutput = string; // @public export interface AtlasTermCategorizationHeader { @@ -990,10 +930,10 @@ export interface AtlasTermCategorizationHeaderOutput { } // @public -export type AtlasTermRelationshipStatus = "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; +export type AtlasTermRelationshipStatus = string; // @public -export type AtlasTermRelationshipStatusOutput = "DRAFT" | "ACTIVE" | "DEPRECATED" | "OBSOLETE" | "OTHER"; +export type AtlasTermRelationshipStatusOutput = string; // @public export interface AtlasTypeDefHeaderOutput { @@ -1081,7 +1021,7 @@ export interface BulkImportResultOutput { } // @public -export type BusinessAttributeUpdateBehavior = "ignore" | "replace" | "merge"; +export type BusinessAttributeUpdateBehavior = string; // @public export type BusinessMetadataOptions = FormData | Array; @@ -1099,10 +1039,10 @@ export interface BusinessMetadataOptionsFilePartDescriptor { } // @public -export type CardinalityValue = "SINGLE" | "LIST" | "SET"; +export type CardinalityValue = string; // @public -export type CardinalityValueOutput = "SINGLE" | "LIST" | "SET"; +export type CardinalityValueOutput = string; // @public export interface ClassificationAssociateOptions { @@ -1182,7 +1122,6 @@ export interface DiscoveryAutoComplete200Response extends HttpResponse { // @public (undocumented) export interface DiscoveryAutoCompleteBodyParam { - // (undocumented) body: AutoCompleteOptions; } @@ -1223,7 +1162,6 @@ export interface DiscoveryQuery200Response extends HttpResponse { // @public (undocumented) export interface DiscoveryQueryBodyParam { - // (undocumented) body: QueryOptions; } @@ -1264,7 +1202,6 @@ export interface DiscoverySuggest200Response extends HttpResponse { // @public (undocumented) export interface DiscoverySuggestBodyParam { - // (undocumented) body: SuggestOptions; } @@ -1303,7 +1240,6 @@ export interface EntityAddClassification204Response extends HttpResponse { // @public (undocumented) export interface EntityAddClassificationBodyParam { - // (undocumented) body: ClassificationAssociateOptions; } @@ -1499,7 +1435,6 @@ export interface EntityBulkCreateOrUpdate200Response extends HttpResponse { // @public (undocumented) export interface EntityBulkCreateOrUpdateBodyParam { - // (undocumented) body: AtlasEntitiesWithExtInfo; } @@ -1543,6 +1478,13 @@ export interface EntityBulkDeleteDefaultResponse extends HttpResponse { status: string; } +// @public +export interface EntityBulkDeleteGuidQueryParam { + explode: true; + style: "form"; + value: string[]; +} + // @public (undocumented) export type EntityBulkDeleteParameters = EntityBulkDeleteQueryParam & RequestParameters; @@ -1554,7 +1496,7 @@ export interface EntityBulkDeleteQueryParam { // @public (undocumented) export interface EntityBulkDeleteQueryParamProperties { - guid: string; + guid: EntityBulkDeleteGuidQueryParam; } // @public (undocumented) @@ -1572,7 +1514,6 @@ export interface EntityBulkSetClassifications200Response extends HttpResponse { // @public (undocumented) export interface EntityBulkSetClassificationsBodyParam { - // (undocumented) body: AtlasEntityHeaders; } @@ -1602,7 +1543,6 @@ export interface EntityCreateOrUpdate200Response extends HttpResponse { // @public (undocumented) export interface EntityCreateOrUpdateBodyParam { - // (undocumented) body: AtlasEntityWithExtInfo; } @@ -1877,7 +1817,6 @@ export interface EntityImportBusinessMetadata200Response extends HttpResponse { // @public (undocumented) export interface EntityImportBusinessMetadataBodyParam { - // (undocumented) body: BusinessMetadataOptions; } @@ -1920,6 +1859,13 @@ export interface EntityListByGuidsDefaultResponse extends HttpResponse { status: string; } +// @public +export interface EntityListByGuidsGuidQueryParam { + explode: true; + style: "form"; + value: string[]; +} + // @public (undocumented) export type EntityListByGuidsParameters = EntityListByGuidsQueryParam & RequestParameters; @@ -1932,7 +1878,7 @@ export interface EntityListByGuidsQueryParam { // @public (undocumented) export interface EntityListByGuidsQueryParamProperties { "api-version"?: string; - guid: string; + guid: EntityListByGuidsGuidQueryParam; ignoreRelationships?: boolean; minExtInfo?: boolean; } @@ -1989,7 +1935,6 @@ export interface EntityMoveEntitiesToCollection200Response extends HttpResponse // @public (undocumented) export interface EntityMoveEntitiesToCollectionBodyParam { - // (undocumented) body: MoveEntitiesOptions; } @@ -2068,7 +2013,6 @@ export interface EntityPartialUpdateByUniqueAttributes200Response extends HttpRe // @public (undocumented) export interface EntityPartialUpdateByUniqueAttributesBodyParam { - // (undocumented) body: AtlasEntityWithExtInfo; } @@ -2325,10 +2269,10 @@ export interface EntitySetLabelsDefaultResponse extends HttpResponse { export type EntitySetLabelsParameters = EntitySetLabelsBodyParam & RequestParameters; // @public -export type EntityStatus = "ACTIVE" | "DELETED"; +export type EntityStatus = string; // @public -export type EntityStatusOutput = "ACTIVE" | "DELETED"; +export type EntityStatusOutput = string; // @public export interface EntityUpdateClassifications204Response extends HttpResponse { @@ -2417,7 +2361,6 @@ export interface GlossaryCreate200Response extends HttpResponse { // @public (undocumented) export interface GlossaryCreateBodyParam { - // (undocumented) body: AtlasGlossary; } @@ -2465,7 +2408,6 @@ export interface GlossaryCreateCategory200Response extends HttpResponse { // @public (undocumented) export interface GlossaryCreateCategoryBodyParam { - // (undocumented) body: AtlasGlossaryCategory; } @@ -2506,7 +2448,6 @@ export interface GlossaryCreateTerm200Response extends HttpResponse { // @public (undocumented) export interface GlossaryCreateTermBodyParam { - // (undocumented) body: AtlasGlossaryTerm; } @@ -3231,7 +3172,6 @@ export interface GlossaryUpdate200Response extends HttpResponse { // @public (undocumented) export interface GlossaryUpdateBodyParam { - // (undocumented) body: AtlasGlossary; } @@ -3245,7 +3185,6 @@ export interface GlossaryUpdateCategory200Response extends HttpResponse { // @public (undocumented) export interface GlossaryUpdateCategoryBodyParam { - // (undocumented) body: AtlasGlossaryCategory; } @@ -3293,7 +3232,6 @@ export interface GlossaryUpdateTerm200Response extends HttpResponse { // @public (undocumented) export interface GlossaryUpdateTermBodyParam { - // (undocumented) body: AtlasGlossaryTerm; } @@ -3329,7 +3267,7 @@ export interface ImportInfoOutput { } // @public -export type ImportStatusOutput = "SUCCESS" | "FAILED"; +export type ImportStatusOutput = string; // @public (undocumented) export function isUnexpected(response: EntityCreateOrUpdate200Response | EntityCreateOrUpdateDefaultResponse): response is EntityCreateOrUpdateDefaultResponse; @@ -3620,10 +3558,10 @@ export function isUnexpected(response: TypeGetTermTemplateDefByGuid200Response | export function isUnexpected(response: TypeGetTermTemplateDefByName200Response | TypeGetTermTemplateDefByNameDefaultResponse): response is TypeGetTermTemplateDefByNameDefaultResponse; // @public -export type LineageDirection = "INPUT" | "OUTPUT" | "BOTH"; +export type LineageDirection = string; // @public -export type LineageDirectionOutput = "INPUT" | "OUTPUT" | "BOTH"; +export type LineageDirectionOutput = string; // @public (undocumented) export interface LineageGet { @@ -3845,10 +3783,10 @@ export interface QueryResultOutput { } // @public -export type RelationshipCategory = "ASSOCIATION" | "AGGREGATION" | "COMPOSITION"; +export type RelationshipCategory = string; // @public -export type RelationshipCategoryOutput = "ASSOCIATION" | "AGGREGATION" | "COMPOSITION"; +export type RelationshipCategoryOutput = string; // @public (undocumented) export interface RelationshipCreate { @@ -3866,7 +3804,6 @@ export interface RelationshipCreate200Response extends HttpResponse { // @public (undocumented) export interface RelationshipCreateBodyParam { - // (undocumented) body: AtlasRelationship; } @@ -3944,7 +3881,6 @@ export interface RelationshipUpdate200Response extends HttpResponse { // @public (undocumented) export interface RelationshipUpdateBodyParam { - // (undocumented) body: AtlasRelationship; } @@ -3972,10 +3908,10 @@ export interface ResourceLinkOutput { } // @public -export type RoundingMode = "UP" | "DOWN" | "CEILING" | "FLOOR" | "HALF_UP" | "HALF_DOWN" | "HALF_EVEN" | "UNNECESSARY"; +export type RoundingMode = string; // @public -export type RoundingModeOutput = "UP" | "DOWN" | "CEILING" | "FLOOR" | "HALF_UP" | "HALF_DOWN" | "HALF_EVEN" | "UNNECESSARY"; +export type RoundingModeOutput = string; // @public (undocumented) export interface Routes { @@ -4022,7 +3958,7 @@ export interface Routes { (path: "/search/suggest"): DiscoverySuggest; (path: "/search/autocomplete"): DiscoveryAutoComplete; (path: "/atlas/v2/lineage/{guid}", guid: string): LineageGet; - (path: "/lineage/{guid}/next/", guid: string): LineageGetNextPage; + (path: "/lineage/{guid}/next", guid: string): LineageGetNextPage; (path: "/atlas/v2/lineage/uniqueAttribute/type/{typeName}", typeName: string): LineageGetByUniqueAttribute; (path: "/atlas/v2/relationship"): RelationshipCreate; (path: "/atlas/v2/relationship/guid/{guid}", guid: string): RelationshipGet; @@ -4115,7 +4051,7 @@ export interface SearchResultValueOutput { } // @public -export type SearchSortOrder = "asc" | "desc"; +export type SearchSortOrder = string; // @public export interface SearchTaxonomySetting { @@ -4124,13 +4060,13 @@ export interface SearchTaxonomySetting { } // @public -export type SortTypeOutput = "NONE" | "ASC" | "DESC"; +export type SortTypeOutput = string; // @public -export type StatusAtlasRelationship = "ACTIVE" | "DELETED"; +export type StatusAtlasRelationship = string; // @public -export type StatusAtlasRelationshipOutput = "ACTIVE" | "DELETED"; +export type StatusAtlasRelationshipOutput = string; // @public export interface SuggestOptions { @@ -4178,10 +4114,10 @@ export interface TermSearchResultValueOutput { } // @public -export type TermStatus = "Draft" | "Approved" | "Alert" | "Expired"; +export type TermStatus = string; // @public -export type TermStatusOutput = "Draft" | "Approved" | "Alert" | "Expired"; +export type TermStatusOutput = string; // @public export interface TermTemplateDef { @@ -4265,7 +4201,6 @@ export interface TypeBulkCreate200Response extends HttpResponse { // @public (undocumented) export interface TypeBulkCreateBodyParam { - // (undocumented) body: AtlasTypesDef; } @@ -4288,7 +4223,6 @@ export interface TypeBulkDelete204Response extends HttpResponse { // @public (undocumented) export interface TypeBulkDeleteBodyParam { - // (undocumented) body: AtlasTypesDef; } @@ -4313,7 +4247,6 @@ export interface TypeBulkUpdate200Response extends HttpResponse { // @public (undocumented) export interface TypeBulkUpdateBodyParam { - // (undocumented) body: AtlasTypesDef; } @@ -4329,10 +4262,10 @@ export interface TypeBulkUpdateDefaultResponse extends HttpResponse { export type TypeBulkUpdateParameters = TypeBulkUpdateBodyParam & RequestParameters; // @public -export type TypeCategory = "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE"; +export type TypeCategory = string; // @public -export type TypeCategoryOutput = "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE"; +export type TypeCategoryOutput = string; // @public export interface TypeDelete204Response extends HttpResponse { From bd10e1c5fd121993ceb38de4294bc8ad2bb4c427 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:08:47 +0800 Subject: [PATCH 8/8] Update CHANGELOG.md --- sdk/purview/purview-datamap-rest/CHANGELOG.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sdk/purview/purview-datamap-rest/CHANGELOG.md b/sdk/purview/purview-datamap-rest/CHANGELOG.md index c7acf3da97fa..192f3a417ade 100644 --- a/sdk/purview/purview-datamap-rest/CHANGELOG.md +++ b/sdk/purview/purview-datamap-rest/CHANGELOG.md @@ -1,14 +1,9 @@ ## Release History -### 1.0.0-beta.2 (Unreleased) +### 1.0.0-beta.2 (2024-12-16) #### Features Added - -#### Breaking Changes - -#### Bugs Fixed - -#### Other Changes +- refresh @azure-rest/purview-datamap sdk ### 1.0.0-beta.1 (2024-03-04) - Initial Release